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.001598/0.001597, allocations: 112 kB / 17.68 MB, free: 5.332 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.001966/0.001967, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.387/1.387, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009999/0.001, allocations: 54.88 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1181, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01336/0.1316, allocations: 10.29 MB / 361.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008057/0.1397, allocations: 3.205 MB / 365 MB, free: 6.129 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002191/0.142, allocations: 55.75 kB / 365.1 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002093/0.1441, allocations: 0.6909 MB / 365.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003159/0.1473, allocations: 0.8737 MB / 366.6 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.1483, allocations: 411.4 kB / 367 MB, free: 4.098 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004158/0.1525, allocations: 3.405 MB / 370.4 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2136/0.3662, allocations: 2.598 MB / 373 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003108/0.3693, allocations: 1.515 MB / 374.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003956/0.3733, allocations: 1.857 MB / 376.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001368/0.3747, allocations: 397.1 kB / 376.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001973/0.3767, allocations: 484.9 kB / 377.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001491/0.3782, allocations: 1.107 MB / 378.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00337/0.3816, allocations: 1.772 MB / 380.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006608/0.3882, allocations: 5.212 MB / 385.3 MB, free: 8.758 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3882, allocations: 0 / 385.3 MB, free: 8.758 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3883, allocations: 1.188 kB / 385.3 MB, free: 8.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001621/0.3884, allocations: 0 / 385.3 MB, free: 8.758 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.008586/0.397, allocations: 3.517 MB / 388.9 MB, free: 6.734 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3971, allocations: 9.125 kB / 388.9 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001003/0.3981, allocations: 357.2 kB / 389.2 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003242/0.4013, allocations: 1.91 MB / 391.1 MB, free: 5.309 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/0.4015, allocations: 199.3 kB / 391.3 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004104/0.4019, allocations: 258.4 kB / 391.6 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00599/0.4079, allocations: 3.546 MB / 395.1 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-05/0.408, allocations: 11.66 kB / 395.1 MB, free: 2.988 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002311/0.4082, allocations: 100.2 kB / 395.2 MB, free: 2.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001018/0.4083, allocations: 118.8 kB / 395.3 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004639/0.413, allocations: 3.091 MB / 398.4 MB, free: 1.297 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01897/0.432, allocations: 10.73 MB / 409.2 MB, free: 7.383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003815/0.4358, allocations: 3.072 MB / 412.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002158/0.438, allocations: 1.39 MB / 413.6 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000276/0.4383, allocations: 125.9 kB / 413.8 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001966/0.4403, allocations: 1.152 MB / 414.9 MB, free: 1.398 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 3.757e-06/0.4403, allocations: 0 / 414.9 MB, free: 1.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.0202/0.4605, allocations: 8.869 MB / 423.8 MB, free: 8.414 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.4607, allocations: 180.2 kB / 424 MB, free: 8.199 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003012/0.4637, allocations: 1.835 MB / 425.8 MB, free: 6.363 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002959/0.464, allocations: 57.69 kB / 425.8 MB, free: 6.301 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001238/0.4652, allocations: 1.187 MB / 427 MB, free: 5.105 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006491/0.4659, allocations: 0.5546 MB / 427.6 MB, free: 4.559 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006101/0.4665, allocations: 355.3 kB / 427.9 MB, free: 4.207 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.955e-05/0.4666, allocations: 304.7 kB / 428.2 MB, free: 3.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001621/0.4683, allocations: 1.003 MB / 429.2 MB, free: 2.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001936/0.4702, allocations: 1.43 MB / 430.7 MB, free: 1.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003601/0.4738, allocations: 2.451 MB / 433.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.978e-05/0.4739, allocations: 0 / 433.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006262/0.4801, allocations: 3.338 MB / 436.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.4802, allocations: 11.94 kB / 436.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.188e-05/0.4802, allocations: 12 kB / 436.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002111/0.4823, allocations: 0.8833 MB / 437.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001455/0.4838, allocations: 341 kB / 437.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01219/0.496, allocations: 10.43 MB / 448.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002801/0.4988, allocations: 135.8 kB / 448.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003153/0.4992, allocations: 68 kB / 448.3 MB, free: 15.26 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.002402/0.5016, allocations: 0.9232 MB / 449.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000579/0.5022, allocations: 197.6 kB / 449.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005386/0.5076, allocations: 3.118 MB / 452.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.5076, allocations: 16 kB / 452.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.411e-05/0.5076, allocations: 8 kB / 452.6 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.667e-05/0.5076, allocations: 7.969 kB / 452.6 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/0.5187, allocations: 6.219 MB / 458.8 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.5188, allocations: 4 kB / 458.8 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008812/0.5196, allocations: 217.3 kB / 459 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002278/0.5219, allocations: 0.9276 MB / 460 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001272/0.5221, allocations: 39.98 kB / 460 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01274/0.5348, allocations: 12.01 MB / 472 MB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.5349, allocations: 3 kB / 472 MB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007413/0.5423, allocations: 4.519 MB / 476.5 MB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001519/0.5438, allocations: 494.5 kB / 477 MB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003168/0.5441, allocations: 39.98 kB / 477 MB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.5452, allocations: 107.8 kB / 477.2 MB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004867/0.5457, allocations: 199.6 kB / 477.3 MB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.5458, allocations: 47.98 kB / 477.4 MB, free: 1.605 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001883/0.5477, allocations: 1.261 MB / 478.7 MB, free: 364 kB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5477, allocations: 0 / 478.7 MB, free: 364 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.002111/0.5498, allocations: 0.6302 MB / 479.3 MB, free: 15.72 MB / 398.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.0003813/0.5502, allocations: 208.8 kB / 479.5 MB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00485/0.5551, allocations: 3.266 MB / 482.8 MB, free: 12.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.5551, allocations: 0 / 482.8 MB, free: 12.22 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003256/0.5583, allocations: 2.247 MB / 485 MB, free: 9.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002566/0.5609, allocations: 0.565 MB / 485.6 MB, free: 9.375 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009031/0.57, allocations: 5.689 MB / 491.3 MB, free: 3.648 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001902/0.5719, allocations: 2.192 MB / 493.4 MB, free: 1.422 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001573/0.5735, allocations: 453.5 kB / 493.9 MB, free: 0.9766 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004242/0.5739, allocations: 135.4 kB / 494 MB, free: 0.8438 MB / 398.1 MB Notification: Performance of SimCode: time 1.543e-06/0.5739, allocations: 0 / 494 MB, free: 0.8438 MB / 398.1 MB Notification: Performance of Templates: time 0.06522/0.6392, allocations: 37.52 MB / 0.5191 GB, free: 11.83 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 -s cvode -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