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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009481/0.0009481, allocations: 186.2 kB / 8.14 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.155/1.155, allocations: 221.4 MB / 229.9 MB, free: 3.059 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009173/0.0009173, allocations: 95.19 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.386e-06/8.406e-06, allocations: 4 kB / 336.5 MB, free: 9.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.222, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1193/0.3414, allocations: 111.4 MB / 498.3 MB, free: 7.32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.3417, allocations: 91.89 kB / 498.4 MB, free: 7.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3397/0.6814, allocations: 92.83 MB / 0.5774 GB, free: 31.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002916/0.6818, allocations: 99.88 kB / 0.5775 GB, free: 31.15 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.00862/0.6904, allocations: 3.561 MB / 0.581 GB, free: 27.53 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.6905, allocations: 11.97 kB / 0.581 GB, free: 27.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00264/0.6931, allocations: 0.5102 MB / 0.5815 GB, free: 27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005441/0.6986, allocations: 2.564 MB / 0.584 GB, free: 24.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000143/0.6987, allocations: 112 kB / 0.5841 GB, free: 24.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009565/0.6997, allocations: 211.9 kB / 0.5843 GB, free: 24.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006789/0.7065, allocations: 3.786 MB / 0.588 GB, free: 20.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008784/0.7153, allocations: 4.388 MB / 0.5923 GB, free: 15.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.663e-05/0.7154, allocations: 11.91 kB / 0.5923 GB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003457/0.7158, allocations: 4 kB / 0.5923 GB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001257/0.7159, allocations: 179 kB / 0.5924 GB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02183/0.7378, allocations: 14.36 MB / 0.6065 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002269/0.7401, allocations: 1.63 MB / 0.6081 GB, free: 15.24 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002974/0.7431, allocations: 1.999 MB / 0.61 GB, free: 13.24 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000337/0.7434, allocations: 151 kB / 0.6102 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.076e-05/0.7435, allocations: 56.56 kB / 0.6102 GB, free: 13.01 MB / 394.7 MB Notification: Performance of pre-optimization done (n=201): time 3.426e-06/0.7435, allocations: 0 / 0.6102 GB, free: 13.01 MB / 394.7 MB Notification: Performance of matching and sorting (n=221): time 0.01474/0.7583, allocations: 7.379 MB / 0.6174 GB, free: 5.586 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.7583, allocations: 73.41 kB / 0.6175 GB, free: 5.504 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002929/0.7613, allocations: 1.777 MB / 0.6192 GB, free: 3.695 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003027/0.7616, allocations: 25.7 kB / 0.6192 GB, free: 3.664 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007323/0.7623, allocations: 1.254 MB / 0.6205 GB, free: 2.391 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00067/0.763, allocations: 0.7081 MB / 0.6212 GB, free: 1.672 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.7631, allocations: 0 / 0.6212 GB, free: 1.672 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.7633, allocations: 398.5 kB / 0.6215 GB, free: 1.277 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001789/0.7651, allocations: 1.25 MB / 0.6228 GB, free: 24 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002125/0.7672, allocations: 1.662 MB / 0.6244 GB, free: 14.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002275/0.7695, allocations: 1.501 MB / 0.6258 GB, free: 12.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.7696, allocations: 11.94 kB / 0.6259 GB, free: 12.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.006739/0.7763, allocations: 3.795 MB / 0.6296 GB, free: 8.863 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.7763, allocations: 4.25 kB / 0.6296 GB, free: 8.859 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.11e-05/0.7764, allocations: 16 kB / 0.6296 GB, free: 8.844 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00205/0.7784, allocations: 0.7543 MB / 0.6303 GB, free: 8.078 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002534/0.781, allocations: 0.5266 MB / 0.6308 GB, free: 7.551 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009326/0.7903, allocations: 8.069 MB / 0.6387 GB, free: 15.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002179/0.7925, allocations: 63.91 kB / 0.6388 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003021/0.7928, allocations: 91.98 kB / 0.6389 GB, free: 14.99 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 () * 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,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004432/0.7933, allocations: 156.4 kB / 0.639 GB, free: 14.83 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005381/0.7938, allocations: 245 kB / 0.6392 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006326/0.8002, allocations: 3.544 MB / 0.6427 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.071e-05/0.8002, allocations: 20 kB / 0.6427 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/0.8002, allocations: 8 kB / 0.6427 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2e-05/0.8003, allocations: 11.95 kB / 0.6427 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01364/0.8139, allocations: 7.39 MB / 0.65 GB, free: 3.473 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.814, allocations: 4 kB / 0.65 GB, free: 3.469 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001912/0.8159, allocations: 395.8 kB / 0.6503 GB, free: 3.082 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002356/0.8182, allocations: 0.7853 MB / 0.6511 GB, free: 2.281 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001871/0.8184, allocations: 31.97 kB / 0.6511 GB, free: 2.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1379/0.9563, allocations: 9.504 MB / 0.6604 GB, free: 111.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.9564, allocations: 3.844 kB / 0.6604 GB, free: 111.5 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006925/0.9633, allocations: 5.622 MB / 0.6659 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001547/0.9649, allocations: 0.6055 MB / 0.6665 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004308/0.9653, allocations: 19.42 kB / 0.6665 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/0.9666, allocations: 80.47 kB / 0.6666 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002781/0.9669, allocations: 142.8 kB / 0.6667 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/0.9671, allocations: 64.45 kB / 0.6668 GB, free: 110.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001746/0.9688, allocations: 1.336 MB / 0.6681 GB, free: 110.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002172/0.971, allocations: 0.7044 MB / 0.6688 GB, free: 110.7 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 () * 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.0005307/0.9716, allocations: 355 kB / 0.6691 GB, free: 110.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004428/0.976, allocations: 3.633 MB / 0.6727 GB, free: 110 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.976, allocations: 3.562 kB / 0.6727 GB, free: 110 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002863/0.9789, allocations: 2.285 MB / 0.6749 GB, free: 109.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002601/0.9815, allocations: 0.5005 MB / 0.6754 GB, free: 109.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01054/0.992, allocations: 6.449 MB / 0.6817 GB, free: 108.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002686/0.9948, allocations: 2.999 MB / 0.6846 GB, free: 107.5 MB / 426.7 MB Notification: Performance of SimCode: time 7.71e-07/0.9948, allocations: 0 / 0.6846 GB, free: 107.5 MB / 426.7 MB Notification: Performance of Templates: time 0.07881/1.074, allocations: 37.85 MB / 0.7216 GB, free: 106 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/jenkins/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