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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001743/0.001743, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 225.6 MB / 234.8 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000938/0.0009382, allocations: 97.05 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.524e-05/1.527e-05, allocations: 4 kB / 343.7 MB, free: 8.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0907/0.09073, allocations: 51.49 MB / 395.2 MB, free: 4.703 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3071/0.3979, allocations: 105.6 MB / 0.489 GB, free: 3.891 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.3982, allocations: 84.2 kB / 0.4891 GB, free: 3.848 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1798/0.578, allocations: 52.97 MB / 0.5408 GB, free: 3.562 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.578, allocations: 4 kB / 0.5408 GB, free: 3.559 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002453/0.5783, allocations: 67.94 kB / 0.5409 GB, free: 3.492 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.007965/0.5863, allocations: 2.727 MB / 0.5435 GB, free: 0.707 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.5863, allocations: 8.031 kB / 0.5435 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00205/0.5884, allocations: 396 kB / 0.5439 GB, free: 316 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005661/0.5941, allocations: 1.89 MB / 0.5458 GB, free: 14.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001676/0.5943, allocations: 88 kB / 0.5459 GB, free: 14.28 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005564/0.5949, allocations: 159.9 kB / 0.546 GB, free: 14.12 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007655/0.6025, allocations: 2.693 MB / 0.5486 GB, free: 11.42 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007927/0.6105, allocations: 3.047 MB / 0.5516 GB, free: 8.223 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.026e-05/0.6106, allocations: 4 kB / 0.5516 GB, free: 8.219 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000333/0.6109, allocations: 7.984 kB / 0.5516 GB, free: 8.211 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001745/0.6111, allocations: 108.9 kB / 0.5517 GB, free: 8.102 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0265/0.6377, allocations: 10.43 MB / 0.5619 GB, free: 13.42 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005273/0.643, allocations: 3.006 MB / 0.5648 GB, free: 10.21 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002798/0.6458, allocations: 1.201 MB / 0.566 GB, free: 9.016 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004637/0.6463, allocations: 142.3 kB / 0.5662 GB, free: 8.855 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002525/0.6488, allocations: 1.06 MB / 0.5672 GB, free: 7.766 MB / 442.7 MB Notification: Performance of pre-optimization done (n=159): time 5.811e-06/0.6489, allocations: 4 kB / 0.5672 GB, free: 7.762 MB / 442.7 MB Notification: Performance of matching and sorting (n=175): time 0.01789/0.6668, allocations: 5.738 MB / 0.5728 GB, free: 1.961 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001622/0.667, allocations: 180.2 kB / 0.573 GB, free: 1.75 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003615/0.6706, allocations: 1.343 MB / 0.5743 GB, free: 412 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003057/0.6709, allocations: 29.7 kB / 0.5743 GB, free: 376 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2219/0.8929, allocations: 1.175 MB / 0.5755 GB, free: 89.41 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007924/0.8937, allocations: 0.5414 MB / 0.576 GB, free: 89.14 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.8939, allocations: 0 / 0.576 GB, free: 89.14 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.894, allocations: 377.1 kB / 0.5763 GB, free: 88.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.8952, allocations: 0.9156 MB / 0.5772 GB, free: 88.84 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001188/0.8964, allocations: 1.267 MB / 0.5785 GB, free: 88.48 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.8977, allocations: 1.067 MB / 0.5795 GB, free: 88.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.8977, allocations: 3.156 kB / 0.5795 GB, free: 88.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004251/0.9019, allocations: 2.992 MB / 0.5824 GB, free: 88.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.902, allocations: 9.688 kB / 0.5825 GB, free: 88.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.902, allocations: 9.219 kB / 0.5825 GB, free: 88.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001648/0.9036, allocations: 0.8414 MB / 0.5833 GB, free: 88.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.9048, allocations: 335.5 kB / 0.5836 GB, free: 88.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007807/0.9126, allocations: 9.176 MB / 0.5926 GB, free: 84.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.9141, allocations: 100.8 kB / 0.5927 GB, free: 84.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.9142, allocations: 71.91 kB / 0.5927 GB, free: 84.34 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.0002952/0.9145, allocations: 155.5 kB / 0.5929 GB, free: 84.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002441/0.9148, allocations: 189.6 kB / 0.5931 GB, free: 84.14 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004026/0.9188, allocations: 2.885 MB / 0.5959 GB, free: 83.95 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.9188, allocations: 16.88 kB / 0.5959 GB, free: 83.95 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.9189, allocations: 9.688 kB / 0.5959 GB, free: 83.95 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.525e-05/0.9189, allocations: 9.891 kB / 0.5959 GB, free: 83.95 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007936/0.9268, allocations: 5.695 MB / 0.6015 GB, free: 83.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.9269, allocations: 3.344 kB / 0.6015 GB, free: 83.42 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009061/0.9278, allocations: 226.7 kB / 0.6017 GB, free: 83.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001899/0.9297, allocations: 0.8954 MB / 0.6026 GB, free: 83.38 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.9298, allocations: 20.36 kB / 0.6026 GB, free: 83.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008687/0.9385, allocations: 10.62 MB / 0.613 GB, free: 77.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.9385, allocations: 0 / 0.613 GB, free: 77.52 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005732/0.9443, allocations: 4.411 MB / 0.6173 GB, free: 75.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.9454, allocations: 490 kB / 0.6177 GB, free: 75.28 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000258/0.9456, allocations: 6.594 kB / 0.6177 GB, free: 75.28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009571/0.9466, allocations: 91.19 kB / 0.6178 GB, free: 75.28 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000416/0.947, allocations: 203.4 kB / 0.618 GB, free: 75.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.9471, allocations: 50.75 kB / 0.6181 GB, free: 75.23 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001441/0.9486, allocations: 1.011 MB / 0.619 GB, free: 74.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9486, allocations: 3.562 kB / 0.6191 GB, free: 74.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002229/0.9508, allocations: 0.5688 MB / 0.6196 GB, free: 74.81 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.0005801/0.9514, allocations: 300.2 kB / 0.6199 GB, free: 74.71 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003905/0.9553, allocations: 3.01 MB / 0.6228 GB, free: 73.31 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.9553, allocations: 2.594 kB / 0.6228 GB, free: 73.31 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002737/0.9581, allocations: 2.133 MB / 0.6249 GB, free: 72.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00217/0.9603, allocations: 438.2 kB / 0.6253 GB, free: 72.14 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007152/0.9674, allocations: 4.564 MB / 0.6298 GB, free: 70.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002031/0.9695, allocations: 2.246 MB / 0.632 GB, free: 69.3 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001484/0.971, allocations: 419.5 kB / 0.6324 GB, free: 69.26 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003696/0.9714, allocations: 119.7 kB / 0.6325 GB, free: 69.26 MB / 442.7 MB Notification: Performance of SimCode: time 6.42e-07/0.9714, allocations: 0 / 0.6325 GB, free: 69.26 MB / 442.7 MB Notification: Performance of Templates: time 0.04333/1.015, allocations: 30.58 MB / 0.6624 GB, free: 67.79 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