Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.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.0008782/0.0008782, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0008994/0.0008994, allocations: 147.4 kB / 24.9 MB, free: 8.727 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.9234/0.9234, allocations: 173.4 MB / 201.5 MB, free: 8.738 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.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 268.5 MB, free: 6.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.267e-05/1.389e-05, allocations: 10.05 kB / 268.5 MB, free: 6 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.008389/0.008402, allocations: 11.37 MB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005636/0.01404, allocations: 3.981 MB / 283.8 MB, free: 6.574 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009293/0.01497, allocations: 79.5 kB / 283.9 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.01636, allocations: 0.8518 MB / 284.8 MB, free: 5.641 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001671/0.01803, allocations: 1.079 MB / 285.9 MB, free: 4.555 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007248/0.01876, allocations: 0.5341 MB / 286.4 MB, free: 4.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002164/0.02092, allocations: 3.559 MB / 289.9 MB, free: 452 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1002/0.1211, allocations: 1.52 MB / 291.5 MB, free: 16.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002982/0.1241, allocations: 2.539 MB / 294 MB, free: 16.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002132/0.1262, allocations: 1.724 MB / 295.7 MB, free: 16.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007893/0.127, allocations: 396.8 kB / 296.1 MB, free: 16.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009836/0.128, allocations: 0.6135 MB / 296.7 MB, free: 16.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007828/0.1287, allocations: 1.152 MB / 297.9 MB, free: 16.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001416/0.1302, allocations: 1.257 MB / 299.1 MB, free: 16.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002452/0.1326, allocations: 2.995 MB / 302.1 MB, free: 15.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.1326, allocations: 0 / 302.1 MB, free: 15.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1326, allocations: 0 / 302.1 MB, free: 15.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.396e-05/0.1327, allocations: 0 / 302.1 MB, free: 15.93 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.003057/0.1357, allocations: 3.436 MB / 305.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.953e-05/0.1357, allocations: 9.891 kB / 305.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008047/0.1365, allocations: 0.544 MB / 306.1 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001277/0.1378, allocations: 1.304 MB / 307.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.257e-05/0.1379, allocations: 198.6 kB / 307.6 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002161/0.1381, allocations: 276.5 kB / 307.9 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/0.1398, allocations: 2.062 MB / 310 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.403e-05/0.1398, allocations: 6.484 kB / 310 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001532/0.14, allocations: 108.7 kB / 310.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.517e-05/0.1401, allocations: 123.8 kB / 310.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.1411, allocations: 0.7854 MB / 311 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005794/0.1469, allocations: 7.193 MB / 318.2 MB, free: 5.656 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007358/0.1476, allocations: 0.8088 MB / 319 MB, free: 4.867 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004897/0.1481, allocations: 473.5 kB / 319.4 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001438/0.1482, allocations: 63.94 kB / 319.5 MB, free: 4.359 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/0.1483, allocations: 43.88 kB / 319.5 MB, free: 4.305 MB / 266.7 MB Notification: Performance of pre-optimization done (n=131): time 2.515e-06/0.1483, allocations: 0 / 319.5 MB, free: 4.305 MB / 266.7 MB Notification: Performance of matching and sorting (n=148): time 0.004062/0.1523, allocations: 2.907 MB / 322.4 MB, free: 1.438 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.763e-05/0.1523, allocations: 68.72 kB / 322.5 MB, free: 1.359 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007204/0.1531, allocations: 1.29 MB / 323.8 MB, free: 316 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.111e-05/0.1531, allocations: 49.7 kB / 323.9 MB, free: 260 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004077/0.1535, allocations: 1.106 MB / 325 MB, free: 15.21 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002509/0.1538, allocations: 0.5295 MB / 325.5 MB, free: 14.71 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003054/0.1541, allocations: 308.8 kB / 325.8 MB, free: 14.44 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.65e-05/0.1542, allocations: 305.1 kB / 326.1 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003022/0.1545, allocations: 206.7 kB / 326.3 MB, free: 13.93 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004713/0.1549, allocations: 0.6696 MB / 327 MB, free: 13.11 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008821/0.1558, allocations: 1.077 MB / 328 MB, free: 11.93 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.1558, allocations: 4 kB / 328 MB, free: 11.92 MB / 282.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.001419/0.1572, allocations: 1.186 MB / 329.2 MB, free: 10.82 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.1573, allocations: 15.94 kB / 329.2 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/0.1573, allocations: 12 kB / 329.3 MB, free: 10.8 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006193/0.1579, allocations: 309.9 kB / 329.6 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007411/0.1586, allocations: 369.8 kB / 329.9 MB, free: 10.16 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002551/0.1612, allocations: 3.735 MB / 333.7 MB, free: 6.312 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005342/0.1617, allocations: 67.92 kB / 333.7 MB, free: 6.246 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.371e-05/0.1618, allocations: 56 kB / 333.8 MB, free: 6.191 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003652/0.1622, allocations: 224.5 kB / 334 MB, free: 5.984 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000222/0.1624, allocations: 175.8 kB / 334.2 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001296/0.1637, allocations: 0.9912 MB / 335.2 MB, free: 4.816 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/0.1637, allocations: 16 kB / 335.2 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1637, allocations: 4 kB / 335.2 MB, free: 4.797 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.1637, allocations: 7.969 kB / 335.2 MB, free: 4.789 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003113/0.1668, allocations: 2.85 MB / 338 MB, free: 2.258 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.1668, allocations: 4 kB / 338 MB, free: 2.254 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005461/0.1674, allocations: 238.6 kB / 338.3 MB, free: 2.031 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007372/0.1681, allocations: 389.6 kB / 338.7 MB, free: 1.648 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.028e-05/0.1682, allocations: 35.98 kB / 338.7 MB, free: 1.613 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003065/0.1713, allocations: 4.93 MB / 343.6 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.1713, allocations: 11.94 kB / 343.6 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001752/0.173, allocations: 1.433 MB / 345.1 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003635/0.1734, allocations: 255.6 kB / 345.3 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001489/0.1735, allocations: 35.44 kB / 345.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004361/0.174, allocations: 63.95 kB / 345.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/0.1741, allocations: 116.9 kB / 345.5 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.407e-05/0.1742, allocations: 28 kB / 345.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007451/0.1749, allocations: 0.6603 MB / 346.2 MB, free: 9.941 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1749, allocations: 0 / 346.2 MB, free: 9.941 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001025/0.1759, allocations: 0.5703 MB / 346.8 MB, free: 9.371 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,16,100.0%), (1,6,100.0%), (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.0002894/0.1762, allocations: 205.8 kB / 347 MB, free: 9.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.1775, allocations: 1.211 MB / 348.2 MB, free: 8.031 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.599e-05/0.1775, allocations: 26.19 kB / 348.2 MB, free: 8.004 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008163/0.1783, allocations: 0.9095 MB / 349.1 MB, free: 7.102 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000974/0.1793, allocations: 440 kB / 349.6 MB, free: 6.68 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005171/0.1845, allocations: 4.569 MB / 354.1 MB, free: 2.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005217/0.185, allocations: 0.6227 MB / 354.7 MB, free: 1.422 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005318/0.1855, allocations: 239.7 kB / 355 MB, free: 1.184 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007256/0.1862, allocations: 459 kB / 355.4 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of SimCode: time 8.01e-07/0.1862, allocations: 0 / 355.4 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of Templates: time 0.03554/0.2218, allocations: 30.3 MB / 385.7 MB, free: 2.926 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.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: 3.513258979190141]