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.0008867/0.0008867, allocations: 98.95 kB / 16.3 MB, free: 5.988 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.0009404/0.0009404, allocations: 179.2 kB / 17.19 MB, free: 5.906 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.413/1.413, allocations: 223.2 MB / 241.1 MB, free: 5.473 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000284/0.0002844, allocations: 6.125 kB / 300.7 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1368, allocations: 50.44 MB / 351.2 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.009612/0.1465, allocations: 8.336 MB / 359.5 MB, free: 3.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006429/0.1529, allocations: 3.111 MB / 362.6 MB, free: 288 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001547/0.1545, allocations: 43.81 kB / 362.6 MB, free: 244 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001776/0.1563, allocations: 0.5791 MB / 363.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00273/0.1591, allocations: 0.7361 MB / 364 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007948/0.1599, allocations: 255.6 kB / 364.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002978/0.1629, allocations: 2.125 MB / 366.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001952/0.1648, allocations: 1.75 MB / 368.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001547/0.1664, allocations: 1.02 MB / 369.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001632/0.168, allocations: 1.296 MB / 370.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002819/0.1683, allocations: 160 kB / 370.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000611/0.169, allocations: 227.9 kB / 370.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007742/0.1697, allocations: 0.7789 MB / 371.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000619/0.1704, allocations: 0.6134 MB / 372.2 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003637/0.174, allocations: 4.118 MB / 376.3 MB, free: 2.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.174, allocations: 0 / 376.3 MB, free: 2.516 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.174, allocations: 3.938 kB / 376.3 MB, free: 2.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000103/0.1741, allocations: 0 / 376.3 MB, free: 2.512 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.00623/0.1804, allocations: 3.009 MB / 379.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.1804, allocations: 8.031 kB / 379.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009231/0.1814, allocations: 360 kB / 379.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003291/0.1847, allocations: 1.812 MB / 381.5 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/0.1848, allocations: 197.1 kB / 381.7 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000368/0.1852, allocations: 263.8 kB / 381.9 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006036/0.1913, allocations: 3.508 MB / 385.4 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.074e-05/0.1914, allocations: 4 kB / 385.4 MB, free: 9.137 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002365/0.1916, allocations: 100 kB / 385.5 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001193/0.1917, allocations: 116.9 kB / 385.6 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005523/0.1973, allocations: 3.095 MB / 388.7 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01714/0.2144, allocations: 10.89 MB / 399.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003527/0.218, allocations: 3.075 MB / 402.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002519/0.2183, allocations: 127.4 kB / 402.8 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001788/0.2201, allocations: 1.156 MB / 404 MB, free: 6.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 3.316e-06/0.2201, allocations: 0 / 404 MB, free: 6.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.0198/0.2399, allocations: 8.927 MB / 412.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.24, allocations: 180.2 kB / 413.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002558/0.2426, allocations: 1.777 MB / 414.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001322/0.2427, allocations: 65.69 kB / 414.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.2439, allocations: 1.192 MB / 416.1 MB, free: 9.695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004855/0.2444, allocations: 0.5545 MB / 416.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.316e-05/0.2445, allocations: 36 kB / 416.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001974/0.2447, allocations: 381.9 kB / 417.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001554/0.2463, allocations: 1.015 MB / 418.1 MB, free: 7.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00189/0.2482, allocations: 1.438 MB / 419.5 MB, free: 6.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.2499, allocations: 1.181 MB / 420.7 MB, free: 4.926 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.2499, allocations: 4 kB / 420.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005362/0.2553, allocations: 3.35 MB / 424.1 MB, free: 1.547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.2553, allocations: 8 kB / 424.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.872e-05/0.2553, allocations: 15.98 kB / 424.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001958/0.2573, allocations: 0.8768 MB / 425 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.2585, allocations: 339.5 kB / 425.3 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2385/0.4971, allocations: 9.835 MB / 435.1 MB, free: 58.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002077/0.4992, allocations: 145.5 kB / 435.3 MB, free: 58.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002857/0.4995, allocations: 68.48 kB / 435.4 MB, free: 58.41 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.001989/0.5015, allocations: 0.9198 MB / 436.3 MB, free: 58.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006003/0.5021, allocations: 205.9 kB / 436.5 MB, free: 58.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006275/0.5084, allocations: 3.133 MB / 439.6 MB, free: 57.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/0.5084, allocations: 20.19 kB / 439.6 MB, free: 57.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.146e-05/0.5085, allocations: 8.125 kB / 439.6 MB, free: 57.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.232e-05/0.5085, allocations: 11.16 kB / 439.6 MB, free: 57.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01126/0.5198, allocations: 6.262 MB / 445.9 MB, free: 55.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/0.5198, allocations: 5.469 kB / 445.9 MB, free: 55.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008678/0.5207, allocations: 213.9 kB / 446.1 MB, free: 55.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002191/0.5229, allocations: 0.9253 MB / 447 MB, free: 54.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001337/0.5231, allocations: 42.64 kB / 447.1 MB, free: 54.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01046/0.5335, allocations: 11.32 MB / 458.4 MB, free: 45.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/0.5336, allocations: 7.938 kB / 458.4 MB, free: 45.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006589/0.5402, allocations: 4.703 MB / 463.1 MB, free: 40.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001576/0.5418, allocations: 0.4906 MB / 463.6 MB, free: 40.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000298/0.5421, allocations: 39.98 kB / 463.7 MB, free: 40.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.5431, allocations: 119.6 kB / 463.8 MB, free: 40.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005476/0.5437, allocations: 196.9 kB / 464 MB, free: 39.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.5438, allocations: 47.98 kB / 464 MB, free: 39.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001792/0.5456, allocations: 1.212 MB / 465.2 MB, free: 38.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5456, allocations: 0 / 465.2 MB, free: 38.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002362/0.548, allocations: 0.6339 MB / 465.9 MB, free: 38.11 MB / 350.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.0003686/0.5484, allocations: 174.4 kB / 466 MB, free: 37.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004665/0.553, allocations: 3.275 MB / 469.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/0.5531, allocations: 0 / 469.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002972/0.5561, allocations: 2.265 MB / 471.6 MB, free: 32.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002637/0.5587, allocations: 0.5173 MB / 472.1 MB, free: 31.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00897/0.5677, allocations: 6.705 MB / 478.8 MB, free: 25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001525/0.5693, allocations: 2.234 MB / 481 MB, free: 22.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001555/0.5709, allocations: 457.4 kB / 481.5 MB, free: 22.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003655/0.5712, allocations: 127.4 kB / 481.6 MB, free: 22.15 MB / 350.1 MB Notification: Performance of SimCode: time 1.813e-06/0.5712, allocations: 0 / 481.6 MB, free: 22.15 MB / 350.1 MB Notification: Performance of Templates: time 0.05893/0.6302, allocations: 33.87 MB / 0.5034 GB, free: 4.66 MB / 366.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/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_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches