Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.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.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.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.001005/0.001005, allocations: 183.8 kB / 8.138 MB, free: 2.219 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.162/1.162, allocations: 221.4 MB / 229.9 MB, free: 3.07 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.0008682/0.0008682, allocations: 98.14 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.781e-06/5.821e-06, allocations: 0 / 336.5 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.171/0.171, allocations: 50.38 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1078/0.2788, allocations: 111.3 MB / 498.2 MB, free: 7.414 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/0.2791, allocations: 99.86 kB / 498.3 MB, free: 7.316 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3421/0.6212, allocations: 92.68 MB / 0.5772 GB, free: 20.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002163/0.6214, allocations: 99.88 kB / 0.5773 GB, free: 20.86 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.006322/0.6278, allocations: 3.557 MB / 0.5807 GB, free: 17.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.6278, allocations: 8.031 kB / 0.5807 GB, free: 17.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001386/0.6292, allocations: 0.5102 MB / 0.5812 GB, free: 16.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004207/0.6334, allocations: 2.57 MB / 0.5837 GB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.969e-05/0.6335, allocations: 112 kB / 0.5839 GB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004319/0.634, allocations: 215.9 kB / 0.5841 GB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005446/0.6394, allocations: 3.778 MB / 0.5878 GB, free: 10.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005875/0.6453, allocations: 4.392 MB / 0.592 GB, free: 5.504 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.209e-05/0.6454, allocations: 11.84 kB / 0.5921 GB, free: 5.492 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002995/0.6457, allocations: 4 kB / 0.5921 GB, free: 5.488 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001142/0.6458, allocations: 179.1 kB / 0.5922 GB, free: 5.312 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02101/0.6669, allocations: 14.35 MB / 0.6062 GB, free: 6.781 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002277/0.6692, allocations: 1.638 MB / 0.6078 GB, free: 5.133 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002734/0.6719, allocations: 1.995 MB / 0.6098 GB, free: 3.145 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003503/0.6723, allocations: 142.6 kB / 0.6099 GB, free: 2.988 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.739e-05/0.6723, allocations: 60.56 kB / 0.61 GB, free: 2.922 MB / 394.7 MB Notification: Performance of pre-optimization done (n=201): time 3.556e-06/0.6724, allocations: 0 / 0.61 GB, free: 2.922 MB / 394.7 MB Notification: Performance of matching and sorting (n=221): time 0.01381/0.6862, allocations: 7.382 MB / 0.6172 GB, free: 11.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.6862, allocations: 77.41 kB / 0.6173 GB, free: 11.42 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002764/0.689, allocations: 1.769 MB / 0.619 GB, free: 9.617 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002048/0.6892, allocations: 25.7 kB / 0.619 GB, free: 9.586 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006935/0.6899, allocations: 1.261 MB / 0.6202 GB, free: 8.309 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005621/0.6905, allocations: 0.7004 MB / 0.6209 GB, free: 7.598 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.6906, allocations: 0 / 0.6209 GB, free: 7.598 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.6908, allocations: 398.5 kB / 0.6213 GB, free: 7.203 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001739/0.6926, allocations: 1.25 MB / 0.6225 GB, free: 5.949 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001923/0.6945, allocations: 1.662 MB / 0.6242 GB, free: 4.121 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002053/0.6965, allocations: 1.505 MB / 0.6256 GB, free: 2.621 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.6966, allocations: 4 kB / 0.6256 GB, free: 2.617 MB / 410.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.006097/0.7027, allocations: 3.8 MB / 0.6293 GB, free: 14.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.7027, allocations: 7.938 kB / 0.6293 GB, free: 14.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/0.7027, allocations: 12 kB / 0.6294 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001967/0.7047, allocations: 0.7535 MB / 0.6301 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002389/0.7071, allocations: 0.5266 MB / 0.6306 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008994/0.7161, allocations: 8.084 MB / 0.6385 GB, free: 5.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001988/0.7181, allocations: 63.91 kB / 0.6386 GB, free: 5.008 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002196/0.7184, allocations: 88 kB / 0.6386 GB, free: 4.922 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.0004106/0.7188, allocations: 146.4 kB / 0.6388 GB, free: 4.773 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004373/0.7192, allocations: 253 kB / 0.639 GB, free: 4.523 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005978/0.7252, allocations: 3.536 MB / 0.6425 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-05/0.7253, allocations: 20 kB / 0.6425 GB, free: 0.9414 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.347e-05/0.7253, allocations: 8 kB / 0.6425 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.736e-05/0.7253, allocations: 11.95 kB / 0.6425 GB, free: 0.9219 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01328/0.7386, allocations: 7.395 MB / 0.6497 GB, free: 9.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.7387, allocations: 7.938 kB / 0.6497 GB, free: 9.473 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002028/0.7407, allocations: 395.7 kB / 0.6501 GB, free: 9.086 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002316/0.743, allocations: 0.7814 MB / 0.6509 GB, free: 8.289 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002056/0.7433, allocations: 27.97 kB / 0.6509 GB, free: 8.262 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1242/0.8675, allocations: 9.518 MB / 0.6602 GB, free: 125.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.8675, allocations: 3.938 kB / 0.6602 GB, free: 125.8 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00661/0.8742, allocations: 5.621 MB / 0.6657 GB, free: 125.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001231/0.8754, allocations: 0.6066 MB / 0.6663 GB, free: 125.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004105/0.8758, allocations: 14.39 kB / 0.6663 GB, free: 125.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.8772, allocations: 82.5 kB / 0.6664 GB, free: 125.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002837/0.8775, allocations: 148.8 kB / 0.6665 GB, free: 125.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001484/0.8776, allocations: 64.75 kB / 0.6666 GB, free: 125.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001644/0.8793, allocations: 1.336 MB / 0.6679 GB, free: 125 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002017/0.8813, allocations: 0.7027 MB / 0.6686 GB, free: 125 MB / 442.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.0004917/0.8818, allocations: 343.7 kB / 0.6689 GB, free: 124.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004209/0.886, allocations: 3.636 MB / 0.6725 GB, free: 124.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.8861, allocations: 2.906 kB / 0.6725 GB, free: 124.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002788/0.8888, allocations: 2.288 MB / 0.6747 GB, free: 123.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002271/0.8911, allocations: 0.503 MB / 0.6752 GB, free: 123.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01001/0.9011, allocations: 6.447 MB / 0.6815 GB, free: 122.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002626/0.9038, allocations: 3.002 MB / 0.6844 GB, free: 121.9 MB / 442.7 MB Notification: Performance of SimCode: time 7.81e-07/0.9038, allocations: 0 / 0.6844 GB, free: 121.9 MB / 442.7 MB Notification: Performance of Templates: time 0.05518/0.959, allocations: 37.85 MB / 0.7214 GB, free: 120.4 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Transformer/IMC_Transformer.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches