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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 110.5 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001085/0.001085, allocations: 43.94 kB / 350 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3406, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01303/0.3536, allocations: 10.22 MB / 409.7 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007934/0.3616, allocations: 3.174 MB / 412.9 MB, free: 19.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002686/0.3644, allocations: 51.81 kB / 412.9 MB, free: 19.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00203/0.3665, allocations: 0.6099 MB / 413.5 MB, free: 19.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004297/0.3708, allocations: 0.7966 MB / 414.3 MB, free: 18.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00135/0.3722, allocations: 363.7 kB / 414.7 MB, free: 18.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005339/0.3775, allocations: 3.94 MB / 418.6 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0032/0.3808, allocations: 2.195 MB / 420.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002578/0.3834, allocations: 1.292 MB / 422.1 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002939/0.3863, allocations: 1.778 MB / 423.9 MB, free: 8.824 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005617/0.3869, allocations: 232 kB / 424.1 MB, free: 8.598 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001101/0.388, allocations: 335.8 kB / 424.4 MB, free: 8.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008041/0.3888, allocations: 0.9384 MB / 425.4 MB, free: 7.328 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001943/0.3908, allocations: 1.598 MB / 427 MB, free: 5.723 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004306/0.3951, allocations: 4.992 MB / 432 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3951, allocations: 0 / 432 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3951, allocations: 0 / 432 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.338e-05/0.3952, allocations: 0 / 432 MB, free: 0.7148 MB / 298.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.01029/0.4055, allocations: 3.52 MB / 435.5 MB, free: 13.13 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.803e-05/0.4056, allocations: 8.031 kB / 435.5 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00136/0.407, allocations: 353 kB / 435.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004848/0.4119, allocations: 1.867 MB / 437.7 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002471/0.4121, allocations: 197.4 kB / 437.9 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005699/0.4127, allocations: 259.9 kB / 438.2 MB, free: 10.4 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009293/0.422, allocations: 3.535 MB / 441.7 MB, free: 6.766 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.6e-05/0.4221, allocations: 7.906 kB / 441.7 MB, free: 6.758 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003963/0.4225, allocations: 111.9 kB / 441.8 MB, free: 6.648 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001904/0.4227, allocations: 112.9 kB / 441.9 MB, free: 6.535 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008395/0.4312, allocations: 3.087 MB / 445 MB, free: 3.434 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02789/0.4591, allocations: 10.87 MB / 455.9 MB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005076/0.4642, allocations: 3.067 MB / 458.9 MB, free: 5.008 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003202/0.4675, allocations: 1.38 MB / 460.3 MB, free: 3.625 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004004/0.4679, allocations: 138.4 kB / 460.5 MB, free: 3.473 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002621/0.4705, allocations: 1.144 MB / 461.6 MB, free: 2.297 MB / 330.7 MB Notification: Performance of pre-optimization done (n=156): time 5.15e-06/0.4705, allocations: 0 / 461.6 MB, free: 2.297 MB / 330.7 MB Notification: Performance of matching and sorting (n=172): time 0.03022/0.5008, allocations: 8.865 MB / 470.5 MB, free: 9.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/0.501, allocations: 188.1 kB / 470.6 MB, free: 9.047 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004195/0.5052, allocations: 1.832 MB / 472.5 MB, free: 7.215 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00032/0.5055, allocations: 61.7 kB / 472.5 MB, free: 7.148 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001701/0.5072, allocations: 1.199 MB / 473.7 MB, free: 5.934 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008629/0.5081, allocations: 0.5584 MB / 474.3 MB, free: 5.367 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008628/0.509, allocations: 351.3 kB / 474.6 MB, free: 5.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.5092, allocations: 301.1 kB / 474.9 MB, free: 4.723 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002577/0.5118, allocations: 1.003 MB / 475.9 MB, free: 3.719 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003066/0.5149, allocations: 1.43 MB / 477.4 MB, free: 2.129 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005499/0.5204, allocations: 2.457 MB / 479.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.631e-05/0.5204, allocations: 4 kB / 479.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.009091/0.5295, allocations: 3.323 MB / 483.1 MB, free: 12.17 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.958e-05/0.5296, allocations: 8 kB / 483.2 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.919e-05/0.5297, allocations: 12 kB / 483.2 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003194/0.5329, allocations: 0.8863 MB / 484.1 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002076/0.535, allocations: 343.3 kB / 484.4 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01619/0.5512, allocations: 9.541 MB / 493.9 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002778/0.554, allocations: 131.9 kB / 494.1 MB, free: 0.8438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003217/0.5543, allocations: 67.98 kB / 494.1 MB, free: 0.7773 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 24 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,switchYD.logicalDelay[3].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.idealOpener.control[3],switchYD.idealOpener.control[2],switchYD.idealOpener.control[1],switchYD.idealCloser.control[3],switchYD.idealCloser.control[2],switchYD.idealCloser.control[1],idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 180 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (9,25,33.3%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002632/0.557, allocations: 0.9369 MB / 495.1 MB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006754/0.5577, allocations: 197.6 kB / 495.3 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008484/0.5662, allocations: 3.107 MB / 498.4 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.586e-05/0.5662, allocations: 16 kB / 498.4 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.878e-05/0.5663, allocations: 8 kB / 498.4 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.426e-05/0.5663, allocations: 11.95 kB / 498.4 MB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01731/0.5836, allocations: 6.272 MB / 0.4928 GB, free: 6.082 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/0.5837, allocations: 4 kB / 0.4928 GB, free: 6.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/0.5851, allocations: 211.7 kB / 0.493 GB, free: 5.871 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003514/0.5886, allocations: 0.9253 MB / 0.494 GB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002081/0.5889, allocations: 39.98 kB / 0.494 GB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3189/0.9077, allocations: 10.99 MB / 0.5047 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.9078, allocations: 3.969 kB / 0.5047 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04757/0.9554, allocations: 34.18 MB / 0.5381 GB, free: 64.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008557/0.9563, allocations: 494.5 kB / 0.5386 GB, free: 63.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002154/0.9565, allocations: 39.98 kB / 0.5386 GB, free: 63.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009458/0.9574, allocations: 107.9 kB / 0.5387 GB, free: 63.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004928/0.9579, allocations: 192.9 kB / 0.5389 GB, free: 63.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.19e-05/0.958, allocations: 51.92 kB / 0.5389 GB, free: 63.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001473/0.9595, allocations: 1.251 MB / 0.5402 GB, free: 62.26 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9595, allocations: 0 / 0.5402 GB, free: 62.26 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002414/0.9619, allocations: 0.9101 MB / 0.5411 GB, free: 61.35 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,1,100.0%), (9,25,33.3%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003854/0.9623, allocations: 216.4 kB / 0.5413 GB, free: 61.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004057/0.9664, allocations: 3.239 MB / 0.5444 GB, free: 57.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.9664, allocations: 0 / 0.5444 GB, free: 57.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002646/0.9691, allocations: 2.25 MB / 0.5466 GB, free: 55.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002156/0.9712, allocations: 0.5362 MB / 0.5471 GB, free: 54.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/0.9823, allocations: 8.924 MB / 0.5559 GB, free: 45.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001767/0.9841, allocations: 2.266 MB / 0.5581 GB, free: 43.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001611/0.9857, allocations: 481.5 kB / 0.5585 GB, free: 43.19 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004156/0.9861, allocations: 138.8 kB / 0.5587 GB, free: 43.06 MB / 378.7 MB Notification: Performance of SimCode: time 8.82e-07/0.9861, allocations: 0 / 0.5587 GB, free: 43.06 MB / 378.7 MB Notification: Performance of Templates: time 0.06557/1.052, allocations: 45.4 MB / 0.603 GB, free: 14.15 MB / 394.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@2/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