Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001573/0.001572, allocations: 199.3 kB / 8.542 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.259/1.259, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008655/0.0008655, allocations: 89.94 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.853e-06/6.893e-06, allocations: 4 kB / 343.1 MB, free: 8.707 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08115/0.08117, allocations: 51.47 MB / 394.6 MB, free: 5.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2331/0.3143, allocations: 105.5 MB / 0.4884 GB, free: 3.977 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.3146, allocations: 91.16 kB / 0.4885 GB, free: 3.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.1353/0.4499, allocations: 52.84 MB / 0.5401 GB, free: 4.129 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002585/0.4502, allocations: 67.94 kB / 0.5401 GB, free: 4.062 MB / 410.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.006688/0.4569, allocations: 2.725 MB / 0.5428 GB, free: 1.281 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.457, allocations: 12.03 kB / 0.5428 GB, free: 1.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001774/0.4587, allocations: 407.9 kB / 0.5432 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00492/0.4637, allocations: 1.89 MB / 0.545 GB, free: 14.92 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/0.4639, allocations: 99.92 kB / 0.5451 GB, free: 14.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007472/0.4646, allocations: 151.9 kB / 0.5453 GB, free: 14.68 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006057/0.4707, allocations: 2.759 MB / 0.548 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006688/0.4774, allocations: 3.102 MB / 0.551 GB, free: 8.656 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.359e-05/0.4775, allocations: 7.844 kB / 0.551 GB, free: 8.648 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002227/0.4778, allocations: 7.984 kB / 0.551 GB, free: 8.641 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/0.4779, allocations: 108.9 kB / 0.5511 GB, free: 8.531 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01688/0.4948, allocations: 10.49 MB / 0.5614 GB, free: 13.79 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/0.4964, allocations: 1.112 MB / 0.5625 GB, free: 12.67 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001904/0.4983, allocations: 1.366 MB / 0.5638 GB, free: 11.31 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003292/0.4986, allocations: 142.3 kB / 0.5639 GB, free: 11.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00148/0.5001, allocations: 1.099 MB / 0.565 GB, free: 10.03 MB / 442.7 MB Notification: Performance of pre-optimization done (n=159): time 4.95e-06/0.5002, allocations: 3.984 kB / 0.565 GB, free: 10.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=175): time 0.01076/0.5109, allocations: 5.866 MB / 0.5707 GB, free: 4.094 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.142e-05/0.511, allocations: 180.2 kB / 0.5709 GB, free: 3.883 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002295/0.5133, allocations: 1.363 MB / 0.5722 GB, free: 2.516 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001218/0.5135, allocations: 29.69 kB / 0.5723 GB, free: 2.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007822/0.5143, allocations: 0.9137 MB / 0.5732 GB, free: 1.551 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004458/0.5147, allocations: 0.5389 MB / 0.5737 GB, free: 1.004 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.5148, allocations: 0 / 0.5737 GB, free: 1.004 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.515, allocations: 381.9 kB / 0.574 GB, free: 0.625 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1513/0.6663, allocations: 0.9628 MB / 0.575 GB, free: 70.15 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.6677, allocations: 1.316 MB / 0.5763 GB, free: 69.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001276/0.669, allocations: 1.116 MB / 0.5774 GB, free: 69.78 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.669, allocations: 3.719 kB / 0.5774 GB, free: 69.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.00424/0.6733, allocations: 3.094 MB / 0.5804 GB, free: 69.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.6733, allocations: 6.844 kB / 0.5804 GB, free: 69.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.6733, allocations: 6.844 kB / 0.5804 GB, free: 69.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001773/0.6751, allocations: 0.8618 MB / 0.5812 GB, free: 69.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/0.6764, allocations: 332.3 kB / 0.5816 GB, free: 69.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008021/0.6844, allocations: 8.838 MB / 0.5902 GB, free: 65.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.686, allocations: 98.05 kB / 0.5903 GB, free: 65.92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001604/0.6861, allocations: 62.03 kB / 0.5903 GB, free: 65.92 MB / 442.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.0003088/0.6865, allocations: 164 kB / 0.5905 GB, free: 65.81 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000273/0.6867, allocations: 187.6 kB / 0.5907 GB, free: 65.81 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004186/0.6909, allocations: 2.965 MB / 0.5936 GB, free: 65.66 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/0.691, allocations: 16.75 kB / 0.5936 GB, free: 65.66 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.691, allocations: 7.531 kB / 0.5936 GB, free: 65.66 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.601e-05/0.691, allocations: 7.781 kB / 0.5936 GB, free: 65.66 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008469/0.6995, allocations: 5.765 MB / 0.5992 GB, free: 65.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.6995, allocations: 0.6562 kB / 0.5992 GB, free: 65.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009796/0.7005, allocations: 218.3 kB / 0.5994 GB, free: 65.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00201/0.7025, allocations: 0.92 MB / 0.6003 GB, free: 65.15 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001252/0.7027, allocations: 16.86 kB / 0.6004 GB, free: 65.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008899/0.7116, allocations: 10.29 MB / 0.6104 GB, free: 60.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.7116, allocations: 5.156 kB / 0.6104 GB, free: 60.09 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00547/0.7171, allocations: 4.599 MB / 0.6149 GB, free: 59.46 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/0.7181, allocations: 490.3 kB / 0.6154 GB, free: 59.27 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003367/0.7185, allocations: 11.53 kB / 0.6154 GB, free: 59.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.7195, allocations: 87.27 kB / 0.6155 GB, free: 59.27 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003033/0.7198, allocations: 137.6 kB / 0.6156 GB, free: 59.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.72, allocations: 48.22 kB / 0.6156 GB, free: 59.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001276/0.7212, allocations: 1.025 MB / 0.6166 GB, free: 59.16 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001784/0.723, allocations: 0.5578 MB / 0.6172 GB, free: 59.16 MB / 442.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.0004516/0.7235, allocations: 311.3 kB / 0.6175 GB, free: 59.07 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00362/0.7271, allocations: 2.988 MB / 0.6204 GB, free: 58.52 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.7271, allocations: 0 / 0.6204 GB, free: 58.52 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00251/0.7297, allocations: 2.068 MB / 0.6224 GB, free: 57.56 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002041/0.7317, allocations: 423.3 kB / 0.6228 GB, free: 57.47 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008237/0.74, allocations: 4.704 MB / 0.6274 GB, free: 55.72 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002491/0.7425, allocations: 2.336 MB / 0.6297 GB, free: 54.71 MB / 442.7 MB Notification: Performance of SimCode: time 8.22e-07/0.7425, allocations: 0 / 0.6297 GB, free: 54.71 MB / 442.7 MB Notification: Performance of Templates: time 0.05174/0.7943, allocations: 31.58 MB / 0.6605 GB, free: 52.93 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches