Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.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_YD,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",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,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",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") [: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.0009984/0.0009983, allocations: 183.5 kB / 8.134 MB, free: 2.223 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.139/1.139, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.000915/0.0009152, allocations: 105.9 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.38e-06/5.42e-06, allocations: 0 / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1807, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1006/0.2814, allocations: 104.7 MB / 491.6 MB, free: 14.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/0.2816, allocations: 79.95 kB / 491.7 MB, free: 14.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2418/0.5234, allocations: 52.72 MB / 0.5316 GB, free: 77.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001543/0.5236, allocations: 67.94 kB / 0.5317 GB, free: 77.8 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.00451/0.5281, allocations: 2.722 MB / 0.5344 GB, free: 75.03 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.5282, allocations: 8.031 kB / 0.5344 GB, free: 75.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007812/0.529, allocations: 359.9 kB / 0.5347 GB, free: 74.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002905/0.5319, allocations: 1.901 MB / 0.5366 GB, free: 72.74 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.792e-05/0.532, allocations: 84 kB / 0.5366 GB, free: 72.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003007/0.5323, allocations: 155.9 kB / 0.5368 GB, free: 72.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003753/0.536, allocations: 2.759 MB / 0.5395 GB, free: 69.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004018/0.5401, allocations: 3.1 MB / 0.5425 GB, free: 66.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.433e-05/0.5402, allocations: 11.84 kB / 0.5425 GB, free: 66.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002122/0.5404, allocations: 4 kB / 0.5425 GB, free: 66.47 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.35e-05/0.5405, allocations: 108.9 kB / 0.5426 GB, free: 66.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01316/0.5536, allocations: 10.47 MB / 0.5529 GB, free: 55.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.5549, allocations: 1.12 MB / 0.554 GB, free: 54.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00152/0.5564, allocations: 1.371 MB / 0.5553 GB, free: 53.22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002583/0.5567, allocations: 134.2 kB / 0.5554 GB, free: 53.08 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00118/0.5579, allocations: 1.107 MB / 0.5565 GB, free: 51.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=159): time 3.076e-06/0.5579, allocations: 3.938 kB / 0.5565 GB, free: 51.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=175): time 0.008969/0.5669, allocations: 5.875 MB / 0.5622 GB, free: 46.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.567, allocations: 184.1 kB / 0.5624 GB, free: 45.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/0.5686, allocations: 1.355 MB / 0.5637 GB, free: 44.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001028/0.5687, allocations: 29.7 kB / 0.5638 GB, free: 44.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005289/0.5693, allocations: 0.9132 MB / 0.5647 GB, free: 43.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003065/0.5696, allocations: 0.5427 MB / 0.5652 GB, free: 42.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.338e-05/0.5697, allocations: 4 kB / 0.5652 GB, free: 42.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.511e-05/0.5698, allocations: 377.9 kB / 0.5656 GB, free: 42.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.5709, allocations: 0.9605 MB / 0.5665 GB, free: 41.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001231/0.5721, allocations: 1.32 MB / 0.5678 GB, free: 40.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001261/0.5734, allocations: 1.114 MB / 0.5689 GB, free: 39.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.5734, allocations: 4 kB / 0.5689 GB, free: 39.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004147/0.5775, allocations: 3.084 MB / 0.5719 GB, free: 35.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.5776, allocations: 4 kB / 0.5719 GB, free: 35.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.5776, allocations: 11.98 kB / 0.5719 GB, free: 35.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001759/0.5794, allocations: 0.8725 MB / 0.5728 GB, free: 35.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/0.5806, allocations: 331.5 kB / 0.5731 GB, free: 34.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00801/0.5887, allocations: 8.85 MB / 0.5817 GB, free: 25.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.5903, allocations: 95.97 kB / 0.5818 GB, free: 25.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001491/0.5905, allocations: 67.98 kB / 0.5819 GB, free: 25.36 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 174 * 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,(9,33.3%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003097/0.5908, allocations: 166 kB / 0.582 GB, free: 25.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002703/0.5911, allocations: 181.8 kB / 0.5822 GB, free: 25.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004148/0.5952, allocations: 2.965 MB / 0.5851 GB, free: 22.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.5952, allocations: 16 kB / 0.5851 GB, free: 22.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.5953, allocations: 12 kB / 0.5851 GB, free: 22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-05/0.5953, allocations: 11.88 kB / 0.5851 GB, free: 21.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008014/0.6033, allocations: 5.755 MB / 0.5908 GB, free: 16.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.6033, allocations: 0 / 0.5908 GB, free: 16.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009803/0.6043, allocations: 224 kB / 0.591 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001997/0.6063, allocations: 0.9224 MB / 0.5919 GB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001114/0.6064, allocations: 23.92 kB / 0.5919 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008558/0.615, allocations: 10.28 MB / 0.6019 GB, free: 4.242 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.615, allocations: 4 kB / 0.6019 GB, free: 4.238 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005327/0.6204, allocations: 4.594 MB / 0.6064 GB, free: 15.54 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009929/0.6214, allocations: 490.5 kB / 0.6069 GB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003273/0.6217, allocations: 15.98 kB / 0.6069 GB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.6228, allocations: 83.92 kB / 0.607 GB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003221/0.6231, allocations: 133.8 kB / 0.6071 GB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.6232, allocations: 55.89 kB / 0.6072 GB, free: 14.76 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001406/0.6246, allocations: 1.02 MB / 0.6082 GB, free: 13.74 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001809/0.6265, allocations: 0.5587 MB / 0.6087 GB, free: 13.18 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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,(9,33.3%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005096/0.627, allocations: 291.6 kB / 0.609 GB, free: 12.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004147/0.6311, allocations: 2.991 MB / 0.6119 GB, free: 9.84 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.6312, allocations: 4 kB / 0.6119 GB, free: 9.836 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002893/0.6341, allocations: 2.062 MB / 0.6139 GB, free: 7.715 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002098/0.6362, allocations: 423.9 kB / 0.6143 GB, free: 7.301 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008648/0.6448, allocations: 4.705 MB / 0.6189 GB, free: 2.516 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002328/0.6472, allocations: 2.331 MB / 0.6212 GB, free: 156 kB / 394.7 MB Notification: Performance of SimCode: time 6.61e-07/0.6472, allocations: 0 / 0.6212 GB, free: 156 kB / 394.7 MB Notification: Performance of Templates: time 0.05241/0.6996, allocations: 31.53 MB / 0.652 GB, free: 0.9102 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_YD/IMC_YD.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches