Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 176.4 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 223.3 MB / 241.4 MB, free: 11.72 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000801/0.0008011, allocations: 100.2 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003332/0.0003332, allocations: 11.94 kB / 352.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2085, allocations: 50.39 MB / 402.7 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2871/0.4957, allocations: 112.4 MB / 0.503 GB, free: 99.18 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/0.496, allocations: 92.97 kB / 0.5031 GB, free: 99.18 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2074/0.7035, allocations: 93.68 MB / 0.5946 GB, free: 19.24 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.7035, allocations: 0 / 0.5946 GB, free: 19.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003492/0.7039, allocations: 99.88 kB / 0.5947 GB, free: 19.14 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01039/0.7143, allocations: 3.935 MB / 0.5986 GB, free: 15.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.7143, allocations: 8.031 kB / 0.5986 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002536/0.7169, allocations: 0.5034 MB / 0.5991 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006518/0.7234, allocations: 2.645 MB / 0.6016 GB, free: 11.92 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000263/0.7237, allocations: 267.4 kB / 0.6019 GB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001211/0.7249, allocations: 352.3 kB / 0.6022 GB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01135/0.7363, allocations: 4.956 MB / 0.6071 GB, free: 6.207 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001912/0.7366, allocations: 4.188 kB / 0.6071 GB, free: 6.203 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009046/0.7375, allocations: 151.9 kB / 0.6072 GB, free: 6.055 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001663/0.7377, allocations: 175.1 kB / 0.6074 GB, free: 5.883 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00835/0.746, allocations: 4.053 MB / 0.6113 GB, free: 1.824 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0287/0.7747, allocations: 14.96 MB / 0.6259 GB, free: 2.539 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005144/0.7799, allocations: 4.215 MB / 0.6301 GB, free: 14.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003066/0.783, allocations: 1.884 MB / 0.6319 GB, free: 12.14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003618/0.7834, allocations: 151 kB / 0.632 GB, free: 11.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.906e-05/0.7835, allocations: 60.5 kB / 0.6321 GB, free: 11.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=201): time 4.378e-06/0.7835, allocations: 3.938 kB / 0.6321 GB, free: 11.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=221): time 0.02107/0.8046, allocations: 10.14 MB / 0.642 GB, free: 1.633 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.8047, allocations: 81.34 kB / 0.6421 GB, free: 1.543 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004597/0.8093, allocations: 2.475 MB / 0.6445 GB, free: 15.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003646/0.8097, allocations: 69.69 kB / 0.6446 GB, free: 14.97 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001234/0.8109, allocations: 1.6 MB / 0.6461 GB, free: 13.35 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008362/0.8118, allocations: 0.7316 MB / 0.6469 GB, free: 12.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002393/0.812, allocations: 44 kB / 0.6469 GB, free: 12.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002217/0.8122, allocations: 406.5 kB / 0.6473 GB, free: 12.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002204/0.8144, allocations: 1.293 MB / 0.6485 GB, free: 10.87 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002401/0.8169, allocations: 1.729 MB / 0.6502 GB, free: 8.969 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004755/0.8216, allocations: 3.155 MB / 0.6533 GB, free: 5.656 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.385e-05/0.8217, allocations: 7.938 kB / 0.6533 GB, free: 5.648 MB / 426.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.007059/0.8287, allocations: 4.032 MB / 0.6573 GB, free: 1.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.8288, allocations: 12 kB / 0.6573 GB, free: 1.578 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.215e-05/0.8288, allocations: 12 kB / 0.6573 GB, free: 1.566 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001891/0.8307, allocations: 0.7622 MB / 0.658 GB, free: 0.7891 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002167/0.8329, allocations: 0.5266 MB / 0.6585 GB, free: 268 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2139/1.047, allocations: 8.74 MB / 0.6671 GB, free: 71.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002559/1.049, allocations: 127.9 kB / 0.6672 GB, free: 71.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005048/1.05, allocations: 85.69 kB / 0.6673 GB, free: 71.85 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002678/1.053, allocations: 1.205 MB / 0.6685 GB, free: 71.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008118/1.053, allocations: 271.1 kB / 0.6687 GB, free: 71.73 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005978/1.059, allocations: 3.755 MB / 0.6724 GB, free: 71.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/1.059, allocations: 25.25 kB / 0.6724 GB, free: 71.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.128e-05/1.059, allocations: 7.344 kB / 0.6724 GB, free: 71.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.938e-05/1.059, allocations: 10.59 kB / 0.6724 GB, free: 71.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/1.073, allocations: 8.054 MB / 0.6803 GB, free: 70.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/1.073, allocations: 4.969 kB / 0.6803 GB, free: 70.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001581/1.074, allocations: 400 kB / 0.6807 GB, free: 70.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002012/1.076, allocations: 0.7918 MB / 0.6814 GB, free: 70.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00018/1.077, allocations: 61.73 kB / 0.6815 GB, free: 70.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009013/1.086, allocations: 10.24 MB / 0.6915 GB, free: 65.74 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/1.086, allocations: 10.59 kB / 0.6915 GB, free: 65.73 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007983/1.094, allocations: 5.577 MB / 0.697 GB, free: 65.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001467/1.095, allocations: 0.6407 MB / 0.6976 GB, free: 65.19 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006825/1.096, allocations: 52.39 kB / 0.6976 GB, free: 65.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001723/1.098, allocations: 132.2 kB / 0.6978 GB, free: 65.19 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004238/1.098, allocations: 184 kB / 0.6979 GB, free: 65.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001591/1.098, allocations: 67.83 kB / 0.698 GB, free: 65.18 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00289/1.101, allocations: 1.704 MB / 0.6997 GB, free: 64.85 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.101, allocations: 0 / 0.6997 GB, free: 64.85 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003279/1.104, allocations: 0.8287 MB / 0.7005 GB, free: 64.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 26,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007989/1.105, allocations: 375.3 kB / 0.7008 GB, free: 64.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005477/1.111, allocations: 3.907 MB / 0.7047 GB, free: 62.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/1.111, allocations: 0 / 0.7047 GB, free: 62.98 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003253/1.114, allocations: 2.492 MB / 0.7071 GB, free: 61.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005242/1.119, allocations: 0.7602 MB / 0.7078 GB, free: 61.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/1.132, allocations: 9.098 MB / 0.7167 GB, free: 57.05 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002608/1.134, allocations: 2.77 MB / 0.7194 GB, free: 55.91 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002385/1.137, allocations: 0.6807 MB / 0.7201 GB, free: 55.85 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007256/1.137, allocations: 174 kB / 0.7202 GB, free: 55.84 MB / 426.7 MB Notification: Performance of SimCode: time 5.21e-07/1.137, allocations: 0 / 0.7202 GB, free: 55.84 MB / 426.7 MB Notification: Performance of Templates: time 0.0704/1.208, allocations: 46.72 MB / 0.7659 GB, free: 31.77 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/Transformers/IMC_Transformer/IMC_Transformer.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches