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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009564/0.0009562, allocations: 95.52 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001087/0.001087, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002525/0.0002525, allocations: 4 kB / 306.6 MB, free: 1.418 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.125, allocations: 51.5 MB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.009028/0.1341, allocations: 8.374 MB / 366.4 MB, free: 5.512 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00686/0.141, allocations: 3.177 MB / 369.6 MB, free: 2.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001746/0.1427, allocations: 43.81 kB / 369.7 MB, free: 2.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002002/0.1448, allocations: 0.583 MB / 370.3 MB, free: 1.699 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002896/0.1477, allocations: 0.7361 MB / 371 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009003/0.1486, allocations: 263.6 kB / 371.2 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2322/0.3808, allocations: 2.117 MB / 373.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003467/0.3844, allocations: 1.758 MB / 375.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002669/0.3871, allocations: 1.023 MB / 376.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002693/0.3898, allocations: 1.297 MB / 377.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004766/0.3903, allocations: 160.2 kB / 377.6 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009801/0.3912, allocations: 241.6 kB / 377.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.3923, allocations: 0.7789 MB / 378.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001154/0.3935, allocations: 0.6146 MB / 379.2 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005483/0.3989, allocations: 4.128 MB / 383.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.399, allocations: 0 / 383.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.399, allocations: 1 kB / 383.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000221/0.3992, allocations: 0 / 383.4 MB, free: 8.797 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.009139/0.4084, allocations: 3.022 MB / 386.4 MB, free: 7.004 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.4084, allocations: 8.688 kB / 386.4 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001711/0.4101, allocations: 386.8 kB / 386.8 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00462/0.4148, allocations: 1.826 MB / 388.6 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002451/0.415, allocations: 198.9 kB / 388.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007742/0.4158, allocations: 255.6 kB / 389 MB, free: 6.027 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007017/0.4228, allocations: 3.502 MB / 392.5 MB, free: 5.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.023e-05/0.4229, allocations: 8.062 kB / 392.5 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002476/0.4232, allocations: 103 kB / 392.6 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001367/0.4233, allocations: 115.7 kB / 392.8 MB, free: 5.043 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005921/0.4293, allocations: 3.095 MB / 395.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01691/0.4462, allocations: 10.89 MB / 406.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003491/0.4497, allocations: 3.082 MB / 409.8 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002714/0.45, allocations: 130.4 kB / 410 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001749/0.4518, allocations: 1.16 MB / 411.1 MB, free: 5.574 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 2.965e-06/0.4518, allocations: 0 / 411.1 MB, free: 5.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.01985/0.4717, allocations: 8.935 MB / 420.1 MB, free: 12.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.4718, allocations: 180.2 kB / 420.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002892/0.4747, allocations: 1.781 MB / 422 MB, free: 10.51 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001761/0.4749, allocations: 57.7 kB / 422.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001076/0.476, allocations: 1.195 MB / 423.3 MB, free: 9.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000481/0.4765, allocations: 0.5525 MB / 423.8 MB, free: 8.703 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.4766, allocations: 40.84 kB / 423.9 MB, free: 8.664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.4767, allocations: 373.9 kB / 424.2 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001546/0.4783, allocations: 1.015 MB / 425.2 MB, free: 7.277 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001741/0.48, allocations: 1.438 MB / 426.7 MB, free: 5.672 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001819/0.4819, allocations: 1.18 MB / 427.8 MB, free: 4.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.617e-06/0.4819, allocations: 7.953 kB / 427.9 MB, free: 4.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005771/0.4877, allocations: 3.346 MB / 431.2 MB, free: 1.121 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.4877, allocations: 8 kB / 431.2 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.4877, allocations: 12 kB / 431.2 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002016/0.4898, allocations: 0.8902 MB / 432.1 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/0.491, allocations: 337.8 kB / 432.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/0.5022, allocations: 9.848 MB / 442.3 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/0.5041, allocations: 147.8 kB / 442.4 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001532/0.5043, allocations: 71.98 kB / 442.5 MB, free: 5.418 MB / 350.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 ($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],$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 () * 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 (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.001875/0.5062, allocations: 0.9253 MB / 443.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003781/0.5066, allocations: 201.6 kB / 443.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005118/0.5117, allocations: 3.131 MB / 446.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/0.5117, allocations: 19.95 kB / 446.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.5117, allocations: 8 kB / 446.8 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.5118, allocations: 7.969 kB / 446.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0102/0.522, allocations: 6.266 MB / 453.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.385e-06/0.522, allocations: 4.141 kB / 453.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008704/0.5229, allocations: 207.7 kB / 453.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002137/0.525, allocations: 0.9331 MB / 454.2 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001226/0.5252, allocations: 43.97 kB / 454.2 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01177/0.5369, allocations: 11.32 MB / 465.6 MB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.537, allocations: 4 kB / 465.6 MB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007154/0.5441, allocations: 4.691 MB / 470.3 MB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00145/0.5456, allocations: 498.3 kB / 470.7 MB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003367/0.546, allocations: 39.98 kB / 470.8 MB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.547, allocations: 123.8 kB / 470.9 MB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004776/0.5475, allocations: 201 kB / 471.1 MB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.5476, allocations: 40 kB / 471.1 MB, free: 8.004 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001888/0.5495, allocations: 1.216 MB / 472.4 MB, free: 6.797 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5495, allocations: 0 / 472.4 MB, free: 6.797 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002317/0.5518, allocations: 0.6328 MB / 473 MB, free: 6.164 MB / 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 (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.0003524/0.5522, allocations: 181.2 kB / 473.2 MB, free: 5.977 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005238/0.5574, allocations: 3.273 MB / 476.4 MB, free: 2.625 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.5575, allocations: 4 kB / 476.4 MB, free: 2.621 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003641/0.5611, allocations: 2.262 MB / 478.7 MB, free: 292 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002739/0.5639, allocations: 0.5237 MB / 479.2 MB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/0.574, allocations: 6.708 MB / 485.9 MB, free: 9.016 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002066/0.5761, allocations: 2.231 MB / 488.2 MB, free: 6.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001674/0.5778, allocations: 461.4 kB / 488.6 MB, free: 6.297 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003769/0.5782, allocations: 131.4 kB / 488.7 MB, free: 6.168 MB / 398.1 MB Notification: Performance of SimCode: time 7.52e-07/0.5782, allocations: 8 kB / 488.7 MB, free: 6.16 MB / 398.1 MB Notification: Performance of Templates: time 0.05905/0.6372, allocations: 33.94 MB / 0.5104 GB, free: 4.605 MB / 430.1 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