Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009896/0.0009896, allocations: 83.58 kB / 21.19 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.044/1.044, allocations: 177.1 MB / 205 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.59e-05/1.721e-05, allocations: 2.312 kB / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.009725/0.009742, allocations: 10.3 MB / 283.3 MB, free: 7.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006247/0.01599, allocations: 3.237 MB / 286.5 MB, free: 3.934 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00152/0.01751, allocations: 71.56 kB / 286.6 MB, free: 3.863 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00165/0.01916, allocations: 0.6946 MB / 287.3 MB, free: 3.164 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002598/0.02176, allocations: 0.9663 MB / 288.3 MB, free: 2.191 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009156/0.02267, allocations: 439.3 kB / 288.7 MB, free: 1.762 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1243/0.147, allocations: 3.522 MB / 292.2 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002112/0.1491, allocations: 1.383 MB / 293.6 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005875/0.155, allocations: 2.428 MB / 296 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002738/0.1577, allocations: 1.727 MB / 297.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001107/0.1588, allocations: 388.5 kB / 298.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001191/0.16, allocations: 488 kB / 298.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00105/0.1611, allocations: 1.13 MB / 299.7 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002175/0.1633, allocations: 1.219 MB / 300.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003559/0.1668, allocations: 2.916 MB / 303.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1668, allocations: 0 / 303.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1668, allocations: 0.8438 kB / 303.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001352/0.167, allocations: 0 / 303.9 MB, free: 13.12 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.00603/0.173, allocations: 3.693 MB / 307.6 MB, free: 10.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.173, allocations: 10.69 kB / 307.6 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001114/0.1741, allocations: 0.597 MB / 308.2 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002321/0.1765, allocations: 1.787 MB / 310 MB, free: 9.793 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.1766, allocations: 194.6 kB / 310.1 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002842/0.1769, allocations: 257.9 kB / 310.4 MB, free: 9.621 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003294/0.1802, allocations: 2.139 MB / 312.5 MB, free: 8.094 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.699e-05/0.1802, allocations: 15.8 kB / 312.5 MB, free: 8.082 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001843/0.1804, allocations: 103 kB / 312.6 MB, free: 7.984 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.7e-05/0.1805, allocations: 112.9 kB / 312.8 MB, free: 7.871 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002166/0.1827, allocations: 0.9754 MB / 313.7 MB, free: 6.895 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01024/0.1929, allocations: 8.994 MB / 322.7 MB, free: 13.86 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001904/0.1948, allocations: 1.217 MB / 323.9 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.1959, allocations: 0.6372 MB / 324.6 MB, free: 12.05 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002156/0.1961, allocations: 60.94 kB / 324.6 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/0.1972, allocations: 0.7214 MB / 325.4 MB, free: 11.21 MB / 282.7 MB Notification: Performance of pre-optimization done (n=156): time 3.998e-06/0.1972, allocations: 0 / 325.4 MB, free: 11.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=172): time 0.01144/0.2087, allocations: 4.738 MB / 330.1 MB, free: 6.477 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.163e-05/0.2088, allocations: 180.2 kB / 330.3 MB, free: 6.266 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001923/0.2107, allocations: 1.503 MB / 331.8 MB, free: 4.746 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.2108, allocations: 57.7 kB / 331.8 MB, free: 4.684 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009625/0.2118, allocations: 1.309 MB / 333.1 MB, free: 3.367 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004464/0.2122, allocations: 0.5969 MB / 333.7 MB, free: 2.781 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004947/0.2127, allocations: 373.1 kB / 334.1 MB, free: 2.406 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.2128, allocations: 488.7 kB / 334.6 MB, free: 1.926 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006521/0.2135, allocations: 295.8 kB / 334.9 MB, free: 1.637 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009883/0.2145, allocations: 0.9756 MB / 335.8 MB, free: 432 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001666/0.2161, allocations: 1.272 MB / 337.1 MB, free: 15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/0.2161, allocations: 4 kB / 337.1 MB, free: 14.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.002803/0.2189, allocations: 1.74 MB / 338.9 MB, free: 13.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.219, allocations: 8 kB / 338.9 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.219, allocations: 12 kB / 338.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.2201, allocations: 0.4928 MB / 339.4 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006843/0.2208, allocations: 331.7 kB / 339.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00568/0.2265, allocations: 8.059 MB / 347.8 MB, free: 4.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009955/0.2275, allocations: 119.9 kB / 347.9 MB, free: 3.984 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.565e-05/0.2276, allocations: 72 kB / 347.9 MB, free: 3.914 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.0007087/0.2283, allocations: 282.9 kB / 348.2 MB, free: 3.648 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003116/0.2286, allocations: 266.7 kB / 348.5 MB, free: 3.387 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002075/0.2307, allocations: 1.538 MB / 350 MB, free: 1.836 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.2307, allocations: 16 kB / 350 MB, free: 1.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.2307, allocations: 8 kB / 350 MB, free: 1.812 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.2307, allocations: 7.969 kB / 350.1 MB, free: 1.805 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005056/0.2357, allocations: 3.897 MB / 354 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.2357, allocations: 0 / 354 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004755/0.2362, allocations: 205.6 kB / 354.2 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001188/0.2374, allocations: 0.553 MB / 354.7 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.658e-05/0.2375, allocations: 39.98 kB / 354.7 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00614/0.2436, allocations: 9.741 MB / 364.5 MB, free: 2.902 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.2436, allocations: 7.938 kB / 364.5 MB, free: 2.895 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002866/0.2465, allocations: 2.12 MB / 366.6 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006203/0.2471, allocations: 386.1 kB / 367 MB, free: 356 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001612/0.2473, allocations: 36 kB / 367 MB, free: 320 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004796/0.2478, allocations: 99.91 kB / 367.1 MB, free: 220 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00031/0.2481, allocations: 188.9 kB / 367.3 MB, free: 32 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.899e-05/0.2482, allocations: 49 kB / 367.4 MB, free: 15.98 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009295/0.2491, allocations: 0.8455 MB / 368.2 MB, free: 15.14 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2491, allocations: 0 / 368.2 MB, free: 15.14 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001573/0.2507, allocations: 0.6249 MB / 368.8 MB, free: 14.52 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.0003265/0.251, allocations: 216 kB / 369 MB, free: 14.31 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002504/0.2535, allocations: 1.956 MB / 371 MB, free: 12.33 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.2535, allocations: 4 kB / 371 MB, free: 12.33 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001822/0.2553, allocations: 1.617 MB / 372.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001953/0.2573, allocations: 0.5332 MB / 373.1 MB, free: 10.15 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007453/0.2647, allocations: 4.746 MB / 377.9 MB, free: 5.332 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007874/0.2655, allocations: 0.7494 MB / 378.6 MB, free: 4.551 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009536/0.2665, allocations: 348.5 kB / 379 MB, free: 4.207 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003323/0.2668, allocations: 132.5 kB / 379.1 MB, free: 4.078 MB / 330.7 MB Notification: Performance of SimCode: time 1.513e-06/0.2668, allocations: 4 kB / 379.1 MB, free: 4.074 MB / 330.7 MB Notification: Performance of Templates: time 0.05502/0.3218, allocations: 38.86 MB / 418 MB, free: 13.8 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.143600806128234]