Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") [: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.001665/0.001665, allocations: 174.9 kB / 8.13 MB, free: 0.8789 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.149/1.149, allocations: 221.4 MB / 229.9 MB, free: 13.49 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008806/0.0008806, allocations: 93.53 kB / 280.8 MB, free: 10.52 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 5.32e-06/5.35e-06, allocations: 0 / 336.5 MB, free: 2.793 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07725/0.07727, allocations: 50.41 MB / 386.9 MB, free: 340 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2209/0.2982, allocations: 109.2 MB / 496.1 MB, free: 4.5 MB / 370.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/0.2985, allocations: 87.95 kB / 496.2 MB, free: 4.414 MB / 370.8 MB Notification: Performance of FrontEnd: time 0.1382/0.4367, allocations: 51.52 MB / 0.5349 GB, free: 0.9883 MB / 418.8 MB Notification: Performance of Transformations before backend: time 0.0001495/0.4368, allocations: 59.94 kB / 0.5349 GB, free: 0.9297 MB / 418.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.1038/0.5406, allocations: 2.437 MB / 0.5373 GB, free: 141.6 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.5407, allocations: 6.75 kB / 0.5373 GB, free: 141.6 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009538/0.5417, allocations: 334.6 kB / 0.5376 GB, free: 141.5 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003083/0.5448, allocations: 1.789 MB / 0.5394 GB, free: 141.1 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.46e-05/0.5448, allocations: 66.31 kB / 0.5394 GB, free: 141.1 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002606/0.5451, allocations: 125.2 kB / 0.5396 GB, free: 141.1 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002869/0.548, allocations: 1.982 MB / 0.5415 GB, free: 141.1 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003069/0.5511, allocations: 2.331 MB / 0.5438 GB, free: 140.8 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.417e-05/0.5511, allocations: 7.344 kB / 0.5438 GB, free: 140.8 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001679/0.5513, allocations: 3.094 kB / 0.5438 GB, free: 140.8 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.544e-05/0.5514, allocations: 93.75 kB / 0.5439 GB, free: 140.8 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01104/0.5624, allocations: 7.982 MB / 0.5517 GB, free: 139.1 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.5637, allocations: 0.9041 MB / 0.5525 GB, free: 139.1 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009817/0.5647, allocations: 0.8894 MB / 0.5534 GB, free: 139.1 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000258/0.565, allocations: 146.7 kB / 0.5536 GB, free: 139 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.565, allocations: 42.41 kB / 0.5536 GB, free: 139 MB / 418.8 MB Notification: Performance of pre-optimization done (n=119): time 3.256e-06/0.5651, allocations: 0 / 0.5536 GB, free: 139 MB / 418.8 MB Notification: Performance of matching and sorting (n=135): time 0.007688/0.5727, allocations: 4.844 MB / 0.5583 GB, free: 138.1 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.113e-05/0.5728, allocations: 64.47 kB / 0.5584 GB, free: 138 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001871/0.5747, allocations: 1.682 MB / 0.56 GB, free: 137.9 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 9.806e-05/0.5748, allocations: 28.77 kB / 0.5601 GB, free: 137.8 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002597/0.575, allocations: 0.7888 MB / 0.5608 GB, free: 137.4 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002368/0.5753, allocations: 447.1 kB / 0.5613 GB, free: 137.1 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.438e-05/0.5754, allocations: 0 / 0.5613 GB, free: 137.1 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 6.826e-05/0.5754, allocations: 361.1 kB / 0.5616 GB, free: 136.8 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009164/0.5764, allocations: 0.7076 MB / 0.5623 GB, free: 136.8 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008959/0.5773, allocations: 0.9513 MB / 0.5632 GB, free: 136.6 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.5783, allocations: 0.8399 MB / 0.564 GB, free: 136.5 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.5783, allocations: 0 / 0.564 GB, free: 136.5 MB / 418.8 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003871/0.5822, allocations: 2.604 MB / 0.5666 GB, free: 136.3 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.5822, allocations: 7.375 kB / 0.5666 GB, free: 136.3 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.946e-05/0.5822, allocations: 7.375 kB / 0.5666 GB, free: 136.3 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001984/0.5842, allocations: 0.8366 MB / 0.5674 GB, free: 136.3 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.5853, allocations: 272.3 kB / 0.5677 GB, free: 136.3 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009045/0.5944, allocations: 8.447 MB / 0.5759 GB, free: 132.8 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.5957, allocations: 66.09 kB / 0.576 GB, free: 132.8 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.5958, allocations: 54.19 kB / 0.576 GB, free: 132.8 MB / 418.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002262/0.596, allocations: 120.9 kB / 0.5762 GB, free: 132.7 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002984/0.5963, allocations: 188.5 kB / 0.5763 GB, free: 132.6 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003694/0.6, allocations: 2.389 MB / 0.5787 GB, free: 131.8 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.6001, allocations: 14.44 kB / 0.5787 GB, free: 131.8 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.6001, allocations: 6.75 kB / 0.5787 GB, free: 131.8 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.6001, allocations: 10.42 kB / 0.5787 GB, free: 131.8 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007603/0.6077, allocations: 4.654 MB / 0.5832 GB, free: 130 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.6077, allocations: 5.812 kB / 0.5832 GB, free: 130 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.6088, allocations: 209.7 kB / 0.5834 GB, free: 130 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001864/0.6107, allocations: 0.7056 MB / 0.5841 GB, free: 129.8 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.6108, allocations: 19.84 kB / 0.5842 GB, free: 129.8 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007566/0.6184, allocations: 7.843 MB / 0.5918 GB, free: 124.4 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.6184, allocations: 1.375 kB / 0.5918 GB, free: 124.4 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004921/0.6234, allocations: 3.51 MB / 0.5952 GB, free: 122.7 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008054/0.6242, allocations: 466.4 kB / 0.5957 GB, free: 122.2 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002843/0.6245, allocations: 7.141 kB / 0.5957 GB, free: 122.2 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009774/0.6255, allocations: 62.94 kB / 0.5958 GB, free: 122.2 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.6256, allocations: 77.52 kB / 0.5958 GB, free: 122.2 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-05/0.6257, allocations: 43.55 kB / 0.5959 GB, free: 122.1 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.001461/0.6272, allocations: 1.284 MB / 0.5971 GB, free: 121 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.001588/0.6288, allocations: 0.4998 MB / 0.5976 GB, free: 120.5 MB / 418.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008426/0.6297, allocations: 0.5019 MB / 0.5981 GB, free: 120.2 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.00287/0.6325, allocations: 2.209 MB / 0.6003 GB, free: 118.2 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.6326, allocations: 4 kB / 0.6003 GB, free: 118.2 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001915/0.6345, allocations: 1.529 MB / 0.6018 GB, free: 116.8 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001394/0.6359, allocations: 324.2 kB / 0.6021 GB, free: 116.5 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006322/0.6422, allocations: 4.259 MB / 0.6062 GB, free: 112.8 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001598/0.6438, allocations: 2.098 MB / 0.6083 GB, free: 111.1 MB / 418.8 MB Notification: Performance of SimCode: time 1.593e-06/0.6438, allocations: 0 / 0.6083 GB, free: 111.1 MB / 418.8 MB Notification: Performance of Templates: time 0.0393/0.6832, allocations: 26.2 MB / 0.6339 GB, free: 91.68 MB / 418.8 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches