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.00116/0.00116, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009222/0.0009222, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 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.046/1.046, allocations: 173.4 MB / 201.2 MB, free: 9.324 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.042e-06/1.042e-06, allocations: 0 / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.816e-05/1.921e-05, allocations: 2.312 kB / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.009973/0.009992, allocations: 10.26 MB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004586/0.01458, allocations: 3.159 MB / 281.4 MB, free: 8.941 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008455/0.01542, allocations: 71.56 kB / 281.5 MB, free: 8.871 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001268/0.01669, allocations: 0.6985 MB / 282.2 MB, free: 8.168 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00168/0.01837, allocations: 0.9624 MB / 283.2 MB, free: 7.199 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006178/0.01899, allocations: 407.4 kB / 283.6 MB, free: 6.801 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00257/0.02156, allocations: 3.516 MB / 287.1 MB, free: 3.266 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001317/0.02288, allocations: 1.385 MB / 288.5 MB, free: 1.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1422/0.1651, allocations: 2.267 MB / 290.7 MB, free: 17.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00355/0.1687, allocations: 1.778 MB / 292.5 MB, free: 17.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001108/0.1698, allocations: 396.7 kB / 292.9 MB, free: 17.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001134/0.1709, allocations: 484.3 kB / 293.4 MB, free: 17.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001065/0.172, allocations: 1.17 MB / 294.5 MB, free: 17.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002629/0.1746, allocations: 1.233 MB / 295.8 MB, free: 17.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004807/0.1794, allocations: 2.939 MB / 298.7 MB, free: 17.06 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.794e-06/0.1794, allocations: 2.406 kB / 298.7 MB, free: 17.06 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1794, allocations: 1.219 kB / 298.7 MB, free: 17.06 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001122/0.1795, allocations: 5.438 kB / 298.7 MB, free: 17.06 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.007588/0.1871, allocations: 3.728 MB / 302.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.1872, allocations: 13.14 kB / 302.5 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001071/0.1882, allocations: 0.5623 MB / 303 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002383/0.1906, allocations: 1.758 MB / 304.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.1907, allocations: 197.9 kB / 305 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002814/0.191, allocations: 256.1 kB / 305.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003221/0.1942, allocations: 2.141 MB / 307.4 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.46e-05/0.1943, allocations: 14.64 kB / 307.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001681/0.1945, allocations: 108.2 kB / 307.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.896e-05/0.1946, allocations: 112.8 kB / 307.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00205/0.1966, allocations: 0.9779 MB / 308.6 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009043/0.2057, allocations: 9.102 MB / 317.7 MB, free: 6.012 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001253/0.2069, allocations: 1.208 MB / 318.9 MB, free: 4.844 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008072/0.2077, allocations: 0.6295 MB / 319.5 MB, free: 4.207 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001911/0.2079, allocations: 62.06 kB / 319.6 MB, free: 4.152 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007069/0.2086, allocations: 0.7282 MB / 320.3 MB, free: 3.363 MB / 266.7 MB Notification: Performance of pre-optimization done (n=156): time 4.008e-06/0.2086, allocations: 0 / 320.3 MB, free: 3.363 MB / 266.7 MB Notification: Performance of matching and sorting (n=172): time 0.008649/0.2173, allocations: 4.765 MB / 325.1 MB, free: 14.6 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.002e-05/0.2174, allocations: 176.2 kB / 325.2 MB, free: 14.39 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001824/0.2192, allocations: 1.505 MB / 326.7 MB, free: 12.87 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.2193, allocations: 57.7 kB / 326.8 MB, free: 12.8 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001067/0.2203, allocations: 1.297 MB / 328.1 MB, free: 11.5 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004576/0.2208, allocations: 0.5985 MB / 328.7 MB, free: 10.91 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004783/0.2213, allocations: 369.1 kB / 329 MB, free: 10.54 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.2214, allocations: 480.7 kB / 329.5 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006353/0.2221, allocations: 307.5 kB / 329.8 MB, free: 9.77 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.2231, allocations: 0.9774 MB / 330.8 MB, free: 8.555 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.2246, allocations: 1.28 MB / 332.1 MB, free: 7.121 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.075e-05/0.2246, allocations: 4 kB / 332.1 MB, free: 7.117 MB / 282.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.00302/0.2277, allocations: 1.735 MB / 333.8 MB, free: 5.445 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.2277, allocations: 8 kB / 333.8 MB, free: 5.438 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/0.2277, allocations: 12 kB / 333.8 MB, free: 5.426 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00135/0.2291, allocations: 499.9 kB / 334.3 MB, free: 4.922 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007746/0.2298, allocations: 336.5 kB / 334.6 MB, free: 4.613 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006541/0.2364, allocations: 8.065 MB / 342.7 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001296/0.2377, allocations: 135.9 kB / 342.8 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.2378, allocations: 68 kB / 342.9 MB, free: 12.04 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.0009285/0.2387, allocations: 285.3 kB / 343.2 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000324/0.239, allocations: 266.7 kB / 343.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002308/0.2413, allocations: 1.537 MB / 345 MB, free: 9.957 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.2413, allocations: 18.19 kB / 345 MB, free: 9.941 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-05/0.2414, allocations: 12 kB / 345 MB, free: 9.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.2414, allocations: 7.969 kB / 345 MB, free: 9.922 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006124/0.2475, allocations: 3.934 MB / 349 MB, free: 5.957 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.2475, allocations: 7.938 kB / 349 MB, free: 5.949 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005589/0.2481, allocations: 213.8 kB / 349.2 MB, free: 5.754 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/0.2493, allocations: 0.5442 MB / 349.7 MB, free: 5.191 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.745e-05/0.2494, allocations: 39.98 kB / 349.8 MB, free: 5.152 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007002/0.2564, allocations: 9.829 MB / 359.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.2564, allocations: 4 kB / 359.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003227/0.2596, allocations: 2.123 MB / 361.7 MB, free: 8.707 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008289/0.2605, allocations: 401.8 kB / 362.1 MB, free: 8.316 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001912/0.2606, allocations: 36 kB / 362.1 MB, free: 8.281 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005599/0.2612, allocations: 103.9 kB / 362.2 MB, free: 8.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003734/0.2616, allocations: 196.9 kB / 362.4 MB, free: 7.988 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.902e-05/0.2617, allocations: 47.98 kB / 362.5 MB, free: 7.941 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001418/0.2631, allocations: 0.841 MB / 363.3 MB, free: 7.105 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2631, allocations: 0 / 363.3 MB, free: 7.105 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001995/0.2651, allocations: 0.632 MB / 364 MB, free: 6.477 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%), (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.0003606/0.2654, allocations: 208.5 kB / 364.2 MB, free: 6.273 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002651/0.2681, allocations: 1.965 MB / 366.1 MB, free: 4.289 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.2681, allocations: 2.406 kB / 366.1 MB, free: 4.289 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001623/0.2697, allocations: 1.642 MB / 367.8 MB, free: 2.598 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001512/0.2712, allocations: 0.5367 MB / 368.3 MB, free: 2.074 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007559/0.2788, allocations: 4.75 MB / 373.1 MB, free: 13.25 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006804/0.2795, allocations: 0.7489 MB / 373.8 MB, free: 12.47 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009331/0.2804, allocations: 348.5 kB / 374.1 MB, free: 12.13 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002991/0.2807, allocations: 128.5 kB / 374.3 MB, free: 12 MB / 330.7 MB Notification: Performance of SimCode: time 1.874e-06/0.2807, allocations: 0 / 374.3 MB, free: 12 MB / 330.7 MB Notification: Performance of Templates: time 0.04836/0.3291, allocations: 37.79 MB / 412.1 MB, free: 6.777 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.192991034127772]