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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 149 kB / 24.81 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.042/1.042, allocations: 173.3 MB / 201.4 MB, free: 9.234 MB / 186.7 MB " [Timeout remaining time 179] 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=25000,variableFilter="time|aimc.is.[0-9,]+.|aimc.idq_rr.[0-9,]+.|aimc.idq_sr.[0-9,]+.|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=25000,variableFilter="time|aimc.is.[0-9,]+.|aimc.idq_rr.[0-9,]+.|aimc.idq_sr.[0-9,]+.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 268.4 MB, free: 6.207 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.321e-05/2.524e-05, allocations: 6.312 kB / 268.4 MB, free: 6.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.009274/0.009299, allocations: 9.967 MB / 278.4 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00472/0.01402, allocations: 3.151 MB / 281.5 MB, free: 9.027 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005593/0.01458, allocations: 67.56 kB / 281.6 MB, free: 8.961 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.01563, allocations: 0.6946 MB / 282.3 MB, free: 8.262 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001408/0.01704, allocations: 0.9663 MB / 283.3 MB, free: 7.289 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000486/0.01753, allocations: 415.4 kB / 283.7 MB, free: 6.883 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002237/0.01976, allocations: 3.512 MB / 287.2 MB, free: 3.352 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001306/0.02107, allocations: 1.389 MB / 288.6 MB, free: 1.902 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1254/0.1465, allocations: 2.413 MB / 291 MB, free: 16.87 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002951/0.1495, allocations: 1.736 MB / 292.7 MB, free: 16.87 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009065/0.1504, allocations: 386.3 kB / 293.1 MB, free: 16.87 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009289/0.1513, allocations: 472.8 kB / 293.6 MB, free: 16.87 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008245/0.1521, allocations: 1.131 MB / 294.7 MB, free: 16.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001858/0.154, allocations: 1.213 MB / 295.9 MB, free: 16.87 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003037/0.157, allocations: 2.897 MB / 298.8 MB, free: 16.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.157, allocations: 1.312 kB / 298.8 MB, free: 16.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.157, allocations: 0 / 298.8 MB, free: 16.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.073e-05/0.1571, allocations: 3.25 kB / 298.8 MB, free: 16.62 MB / 266.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.004348/0.1614, allocations: 3.585 MB / 302.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.1615, allocations: 14.7 kB / 302.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008247/0.1623, allocations: 0.5618 MB / 303 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001564/0.1639, allocations: 1.656 MB / 304.6 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.804e-05/0.164, allocations: 199.8 kB / 304.8 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002191/0.1642, allocations: 259.4 kB / 305.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001917/0.1661, allocations: 1.972 MB / 307 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.397e-05/0.1661, allocations: 13.48 kB / 307.1 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001546/0.1663, allocations: 106.2 kB / 307.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.233e-05/0.1664, allocations: 114.6 kB / 307.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.1674, allocations: 0.7582 MB / 308 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006676/0.174, allocations: 8.85 MB / 316.9 MB, free: 7.363 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008711/0.1749, allocations: 1.118 MB / 318 MB, free: 6.305 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005511/0.1755, allocations: 0.5618 MB / 318.6 MB, free: 5.762 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001222/0.1756, allocations: 53.3 kB / 318.6 MB, free: 5.711 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005141/0.1761, allocations: 0.6815 MB / 319.3 MB, free: 5.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=156): time 3.026e-06/0.1761, allocations: 0 / 319.3 MB, free: 5.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=172): time 0.006038/0.1821, allocations: 3.93 MB / 323.2 MB, free: 1.117 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.1822, allocations: 184.2 kB / 323.4 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009876/0.1832, allocations: 1.456 MB / 324.9 MB, free: 15.66 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.673e-05/0.1832, allocations: 56.22 kB / 324.9 MB, free: 15.6 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006906/0.1839, allocations: 1.318 MB / 326.2 MB, free: 14.34 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003374/0.1843, allocations: 0.6003 MB / 326.8 MB, free: 13.77 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003831/0.1846, allocations: 383.2 kB / 327.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1848, allocations: 480.7 kB / 327.7 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003118/0.1851, allocations: 229 kB / 327.9 MB, free: 12.74 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006136/0.1857, allocations: 0.911 MB / 328.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.1867, allocations: 1.159 MB / 330 MB, free: 10.36 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.1867, allocations: 0 / 330 MB, free: 10.36 MB / 282.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001845/0.1885, allocations: 1.574 MB / 331.5 MB, free: 8.852 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.1886, allocations: 12 kB / 331.6 MB, free: 8.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.1886, allocations: 12.53 kB / 331.6 MB, free: 8.828 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009687/0.1895, allocations: 493.9 kB / 332 MB, free: 8.344 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005823/0.1901, allocations: 302.8 kB / 332.3 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004767/0.1949, allocations: 7.783 MB / 340.1 MB, free: 76 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006675/0.1956, allocations: 84.03 kB / 340.2 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.679e-05/0.1956, allocations: 59.94 kB / 340.3 MB, free: 15.93 MB / 298.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.0005098/0.1962, allocations: 271.8 kB / 340.5 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002592/0.1964, allocations: 265 kB / 340.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001676/0.1981, allocations: 1.408 MB / 342.2 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.1981, allocations: 16 kB / 342.2 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.1981, allocations: 8 kB / 342.2 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.1981, allocations: 11.95 kB / 342.2 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003804/0.2019, allocations: 3.23 MB / 345.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.2019, allocations: 8.062 kB / 345.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004266/0.2024, allocations: 188.9 kB / 345.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.2034, allocations: 0.5165 MB / 346.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.707e-05/0.2034, allocations: 43.98 kB / 346.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005247/0.2087, allocations: 9.458 MB / 355.7 MB, free: 404 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.2087, allocations: 7.75 kB / 355.7 MB, free: 400 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/0.2109, allocations: 1.91 MB / 357.6 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004968/0.2114, allocations: 350.5 kB / 357.9 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.2115, allocations: 39.98 kB / 358 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004283/0.212, allocations: 59.97 kB / 358 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002445/0.2122, allocations: 160.4 kB / 358.2 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.309e-05/0.2123, allocations: 39.98 kB / 358.2 MB, free: 13.83 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006614/0.2129, allocations: 0.7672 MB / 359 MB, free: 13.14 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2129, allocations: 8 kB / 359 MB, free: 13.13 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001544/0.2145, allocations: 0.6288 MB / 359.6 MB, free: 12.5 MB / 314.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%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000294/0.2148, allocations: 213.6 kB / 359.8 MB, free: 12.3 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001817/0.2166, allocations: 1.796 MB / 361.6 MB, free: 10.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.2166, allocations: 4 kB / 361.6 MB, free: 10.51 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001408/0.218, allocations: 1.516 MB / 363.2 MB, free: 8.973 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00159/0.2196, allocations: 0.5332 MB / 363.7 MB, free: 8.461 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006656/0.2262, allocations: 4.676 MB / 368.4 MB, free: 3.734 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007447/0.227, allocations: 0.7452 MB / 369.1 MB, free: 2.961 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006598/0.2276, allocations: 236.8 kB / 369.3 MB, free: 2.727 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/0.2287, allocations: 0.5565 MB / 369.9 MB, free: 2.168 MB / 314.7 MB Notification: Performance of SimCode: time 9.72e-07/0.2287, allocations: 0 / 369.9 MB, free: 2.168 MB / 314.7 MB Notification: Performance of Templates: time 0.09254/0.3212, allocations: 39.33 MB / 409.2 MB, free: 11.49 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.022161444183439]