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.0009761/0.0009761, allocations: 80.62 kB / 22.21 MB, free: 2.289 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.001029/0.001029, allocations: 141.3 kB / 25.59 MB, free: 8.906 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 0.9368/0.9368, allocations: 173.4 MB / 202.2 MB, free: 8.293 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 1.783e-06/1.783e-06, allocations: 0 / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.863e-05/3.042e-05, allocations: 2.312 kB / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.009626/0.009657, allocations: 9.964 MB / 279.2 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00495/0.01461, allocations: 3.149 MB / 282.3 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001279/0.01589, allocations: 67.56 kB / 282.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001506/0.01739, allocations: 0.6985 MB / 283.1 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002374/0.01977, allocations: 0.9624 MB / 284 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007326/0.0205, allocations: 415.4 kB / 284.5 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003357/0.02386, allocations: 3.515 MB / 288 MB, free: 6.945 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001818/0.02567, allocations: 1.389 MB / 289.4 MB, free: 5.496 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00348/0.02915, allocations: 2.417 MB / 291.8 MB, free: 3.074 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002736/0.03189, allocations: 1.738 MB / 293.5 MB, free: 1.332 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009117/0.0328, allocations: 388 kB / 293.9 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009687/0.03377, allocations: 467.9 kB / 294.4 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009992/0.03477, allocations: 1.133 MB / 295.5 MB, free: 15.36 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001883/0.03665, allocations: 1.212 MB / 296.7 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003421/0.04007, allocations: 2.897 MB / 299.6 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.04008, allocations: 0 / 299.6 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.04008, allocations: 0 / 299.6 MB, free: 11.24 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.478e-05/0.04015, allocations: 0 / 299.6 MB, free: 11.24 MB / 282.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.003971/0.04412, allocations: 3.589 MB / 303.2 MB, free: 7.586 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.04416, allocations: 8.031 kB / 303.2 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007531/0.04491, allocations: 0.569 MB / 303.8 MB, free: 7.008 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001887/0.0468, allocations: 1.657 MB / 305.4 MB, free: 5.301 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.04692, allocations: 201.4 kB / 305.6 MB, free: 5.102 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00025/0.04717, allocations: 248.4 kB / 305.9 MB, free: 4.859 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002604/0.04977, allocations: 1.973 MB / 307.8 MB, free: 2.742 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.146e-05/0.04982, allocations: 19.86 kB / 307.8 MB, free: 2.723 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001514/0.04997, allocations: 108 kB / 308 MB, free: 2.617 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.94e-05/0.05005, allocations: 108.9 kB / 308.1 MB, free: 2.508 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.05122, allocations: 0.7593 MB / 308.8 MB, free: 1.715 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009393/0.06062, allocations: 8.846 MB / 317.7 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/0.06177, allocations: 1.12 MB / 318.8 MB, free: 7.469 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006934/0.06247, allocations: 0.5699 MB / 319.4 MB, free: 6.902 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001551/0.06262, allocations: 49.28 kB / 319.4 MB, free: 6.855 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006563/0.06328, allocations: 0.6899 MB / 320.1 MB, free: 6.105 MB / 298.7 MB Notification: Performance of pre-optimization done (n=156): time 3.096e-06/0.06328, allocations: 0 / 320.1 MB, free: 6.105 MB / 298.7 MB Notification: Performance of matching and sorting (n=172): time 0.007583/0.07087, allocations: 3.93 MB / 324 MB, free: 2.125 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.073e-05/0.07094, allocations: 176.2 kB / 324.2 MB, free: 1.918 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001251/0.07219, allocations: 1.462 MB / 325.7 MB, free: 448 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.412e-05/0.07227, allocations: 57.7 kB / 325.7 MB, free: 384 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007882/0.07306, allocations: 1.319 MB / 327 MB, free: 15.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003852/0.07345, allocations: 0.6043 MB / 327.6 MB, free: 14.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006855/0.07413, allocations: 380.9 kB / 328 MB, free: 14.05 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.902e-05/0.07423, allocations: 480.7 kB / 328.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003334/0.07456, allocations: 219.8 kB / 328.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006317/0.0752, allocations: 0.9157 MB / 329.6 MB, free: 12.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.07622, allocations: 1.144 MB / 330.8 MB, free: 10.85 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.07623, allocations: 7.984 kB / 330.8 MB, free: 10.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.002196/0.07843, allocations: 1.572 MB / 332.3 MB, free: 9.242 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.07845, allocations: 8 kB / 332.3 MB, free: 9.234 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/0.07846, allocations: 12 kB / 332.4 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00111/0.07957, allocations: 480.7 kB / 332.8 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006759/0.08025, allocations: 311.5 kB / 333.1 MB, free: 8.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005499/0.08575, allocations: 7.773 MB / 340.9 MB, free: 328 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.08679, allocations: 91.98 kB / 341 MB, free: 236 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.08689, allocations: 55.98 kB / 341 MB, free: 180 kB / 314.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.0006604/0.08755, allocations: 282.8 kB / 341.3 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003402/0.08789, allocations: 262.7 kB / 341.6 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002091/0.08998, allocations: 1.39 MB / 343 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.08999, allocations: 31.88 kB / 343 MB, free: 14.17 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.09, allocations: 12 kB / 343 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.09001, allocations: 7.969 kB / 343 MB, free: 14.15 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004321/0.09433, allocations: 3.225 MB / 346.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.09434, allocations: 4.281 kB / 346.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004549/0.09479, allocations: 187.7 kB / 346.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001085/0.09588, allocations: 0.5164 MB / 346.9 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.697e-05/0.09596, allocations: 39.98 kB / 347 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005861/0.1018, allocations: 9.448 MB / 356.4 MB, free: 156 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1018, allocations: 4 kB / 356.4 MB, free: 152 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1375/0.2393, allocations: 1.91 MB / 358.3 MB, free: 80.42 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008381/0.2402, allocations: 345.3 kB / 358.7 MB, free: 80.42 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002194/0.2404, allocations: 41.78 kB / 358.7 MB, free: 80.42 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005319/0.2409, allocations: 65.78 kB / 358.8 MB, free: 80.42 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004013/0.2413, allocations: 155.9 kB / 358.9 MB, free: 80.42 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8e-05/0.2414, allocations: 35.77 kB / 359 MB, free: 80.42 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009189/0.2423, allocations: 0.7792 MB / 359.8 MB, free: 80.27 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2423, allocations: 0.5469 kB / 359.8 MB, free: 80.27 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001816/0.2441, allocations: 0.6227 MB / 360.4 MB, free: 80.27 MB / 330.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.0003865/0.2445, allocations: 212.7 kB / 360.6 MB, free: 80.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00214/0.2467, allocations: 1.801 MB / 362.4 MB, free: 79.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.2467, allocations: 2.781 kB / 362.4 MB, free: 79.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001283/0.2479, allocations: 1.532 MB / 363.9 MB, free: 78.79 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/0.2494, allocations: 0.5376 MB / 364.5 MB, free: 78.74 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005714/0.2551, allocations: 4.666 MB / 369.1 MB, free: 76.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006277/0.2557, allocations: 0.7505 MB / 369.9 MB, free: 76.7 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008295/0.2565, allocations: 234.8 kB / 370.1 MB, free: 76.64 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008196/0.2573, allocations: 0.5585 MB / 370.7 MB, free: 76.57 MB / 330.7 MB Notification: Performance of SimCode: time 2.515e-06/0.2574, allocations: 0 / 370.7 MB, free: 76.57 MB / 330.7 MB Notification: Performance of Templates: time 0.04344/0.3008, allocations: 40.05 MB / 410.7 MB, free: 39.98 MB / 330.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.099740672856569]