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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 99.45 kB / 17.59 MB, free: 5.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001293/0.001294, allocations: 191.3 kB / 18.52 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 50.08 kB / 301.3 MB, free: 5.844 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09472/0.09587, allocations: 49.44 MB / 350.7 MB, free: 4.395 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01213/0.1081, allocations: 10.29 MB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006454/0.1146, allocations: 3.213 MB / 364.2 MB, free: 6.824 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.1164, allocations: 55.75 kB / 364.3 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002274/0.1187, allocations: 0.6869 MB / 365 MB, free: 6.078 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00331/0.1221, allocations: 0.8776 MB / 365.9 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001346/0.1234, allocations: 415.5 kB / 366.3 MB, free: 4.789 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004301/0.1277, allocations: 3.386 MB / 369.6 MB, free: 1.387 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1579/0.2857, allocations: 2.596 MB / 372.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00228/0.288, allocations: 1.509 MB / 373.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002764/0.2908, allocations: 1.853 MB / 375.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00076/0.2916, allocations: 398 kB / 376 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001124/0.2927, allocations: 488.6 kB / 376.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001087/0.2938, allocations: 1.104 MB / 377.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002016/0.2959, allocations: 1.786 MB / 379.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005154/0.301, allocations: 5.145 MB / 384.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.3011, allocations: 1.031 kB / 384.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3011, allocations: 0 / 384.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001294/0.3012, allocations: 0 / 384.5 MB, free: 8.734 MB / 302.1 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.007566/0.3088, allocations: 3.517 MB / 388 MB, free: 6.695 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.3088, allocations: 9.312 kB / 388 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009519/0.3098, allocations: 353.5 kB / 388.4 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00288/0.3127, allocations: 1.868 MB / 390.2 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001134/0.3128, allocations: 196.5 kB / 390.4 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000358/0.3132, allocations: 260.8 kB / 390.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005315/0.3185, allocations: 3.531 MB / 394.2 MB, free: 2.988 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.176e-05/0.3186, allocations: 14.03 kB / 394.2 MB, free: 2.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002312/0.3188, allocations: 105.7 kB / 394.3 MB, free: 2.902 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-05/0.3189, allocations: 121.5 kB / 394.5 MB, free: 2.879 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004499/0.3234, allocations: 3.083 MB / 397.5 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01665/0.3401, allocations: 10.86 MB / 408.4 MB, free: 7.867 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003357/0.3435, allocations: 3.072 MB / 411.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002101/0.3456, allocations: 1.386 MB / 412.9 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002533/0.3459, allocations: 132.9 kB / 413 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00165/0.3475, allocations: 1.152 MB / 414.1 MB, free: 1.875 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 3.456e-06/0.3476, allocations: 0 / 414.1 MB, free: 1.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.02059/0.3681, allocations: 8.874 MB / 423 MB, free: 8.883 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.3683, allocations: 176.2 kB / 423.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002784/0.3711, allocations: 1.83 MB / 425 MB, free: 6.844 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002135/0.3713, allocations: 57.7 kB / 425.1 MB, free: 6.781 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001073/0.3724, allocations: 1.2 MB / 426.3 MB, free: 5.574 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005205/0.3729, allocations: 0.5553 MB / 426.8 MB, free: 5.027 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005648/0.3735, allocations: 351.3 kB / 427.2 MB, free: 4.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.659e-05/0.3736, allocations: 301.1 kB / 427.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.3752, allocations: 1.007 MB / 428.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001863/0.3771, allocations: 1.431 MB / 429.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003479/0.3806, allocations: 2.459 MB / 432.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/0.3806, allocations: 4 kB / 432.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005876/0.3865, allocations: 3.322 MB / 435.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/0.3866, allocations: 12.53 kB / 435.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/0.3866, allocations: 12 kB / 435.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002112/0.3887, allocations: 0.8878 MB / 436.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.3901, allocations: 336.9 kB / 436.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/0.4017, allocations: 10.45 MB / 447.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00202/0.4038, allocations: 135.8 kB / 447.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001833/0.404, allocations: 68 kB / 447.6 MB, free: 15.71 MB / 366.1 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.001729/0.4057, allocations: 0.9179 MB / 448.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004284/0.4061, allocations: 201.6 kB / 448.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005407/0.4116, allocations: 3.105 MB / 451.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.687e-05/0.4116, allocations: 20 kB / 451.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/0.4116, allocations: 8 kB / 451.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.263e-05/0.4117, allocations: 11.97 kB / 451.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01133/0.423, allocations: 6.258 MB / 458.1 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/0.423, allocations: 0 / 458.1 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009709/0.424, allocations: 215 kB / 458.3 MB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002397/0.4264, allocations: 0.9332 MB / 459.2 MB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002373/0.4267, allocations: 40.17 kB / 459.3 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01302/0.4397, allocations: 12.04 MB / 471.3 MB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4398, allocations: 0 / 471.3 MB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007547/0.4473, allocations: 4.509 MB / 475.8 MB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001337/0.4487, allocations: 494.5 kB / 476.3 MB, free: 2.406 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004024/0.4491, allocations: 39.98 kB / 476.3 MB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.4503, allocations: 103.9 kB / 476.4 MB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005089/0.4508, allocations: 198.4 kB / 476.6 MB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000118/0.4509, allocations: 47.98 kB / 476.7 MB, free: 2.027 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002073/0.453, allocations: 1.258 MB / 477.9 MB, free: 0.7773 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.453, allocations: 0 / 477.9 MB, free: 0.7773 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002745/0.4558, allocations: 0.6328 MB / 478.6 MB, free: 148 kB / 382.1 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.0005135/0.4563, allocations: 224.7 kB / 478.8 MB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007874/0.4642, allocations: 4.23 MB / 483 MB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/0.4643, allocations: 1.938 kB / 483 MB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003681/0.4679, allocations: 2.194 MB / 485.2 MB, free: 9.434 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003341/0.4713, allocations: 0.5737 MB / 485.8 MB, free: 8.867 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01038/0.4817, allocations: 5.772 MB / 491.6 MB, free: 3.059 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001921/0.4837, allocations: 2.149 MB / 493.7 MB, free: 0.875 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007567/0.4845, allocations: 143.4 kB / 493.9 MB, free: 0.7344 MB / 398.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4845, allocations: 0 / 493.9 MB, free: 0.7344 MB / 398.1 MB Notification: Performance of Templates: time 0.2988/0.7832, allocations: 102.7 MB / 0.5826 GB, free: 115.8 MB / 446.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_YD/IMC_YD.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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