Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.0009483/0.0009483, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001492/0.001492, allocations: 145.3 kB / 24.89 MB, free: 8.785 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.8878/0.8878, allocations: 173.4 MB / 201.5 MB, free: 8.762 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.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.665e-06/2.665e-06, allocations: 0 / 268.5 MB, free: 6.023 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.618e-05/3.884e-05, allocations: 10.19 kB / 268.5 MB, free: 6.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.009461/0.009499, allocations: 9.856 MB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005302/0.0148, allocations: 3.286 MB / 281.6 MB, free: 8.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001179/0.01598, allocations: 75.5 kB / 281.7 MB, free: 8.746 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001257/0.01724, allocations: 0.6946 MB / 282.4 MB, free: 8.047 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001878/0.01912, allocations: 0.9236 MB / 283.3 MB, free: 7.117 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006469/0.01976, allocations: 419.2 kB / 283.7 MB, free: 6.707 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002393/0.02216, allocations: 3.065 MB / 286.8 MB, free: 3.629 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001387/0.02354, allocations: 1.376 MB / 288.2 MB, free: 2.164 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1012/0.1248, allocations: 2.242 MB / 290.4 MB, free: 17.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002284/0.127, allocations: 1.528 MB / 291.9 MB, free: 17.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007429/0.1278, allocations: 346.6 kB / 292.3 MB, free: 17.6 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008708/0.1287, allocations: 438.2 kB / 292.7 MB, free: 17.6 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000747/0.1294, allocations: 1.016 MB / 293.7 MB, free: 17.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001294/0.1307, allocations: 1.088 MB / 294.8 MB, free: 17.6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002642/0.1333, allocations: 2.572 MB / 297.4 MB, free: 17.37 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1333, allocations: 3.375 kB / 297.4 MB, free: 17.37 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.1333, allocations: 1.094 kB / 297.4 MB, free: 17.37 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.402e-05/0.1334, allocations: 2.297 kB / 297.4 MB, free: 17.37 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.003964/0.1374, allocations: 2.995 MB / 300.4 MB, free: 16.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.1374, allocations: 9.922 kB / 300.4 MB, free: 16.08 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007165/0.1381, allocations: 429.4 kB / 300.8 MB, free: 16.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001521/0.1396, allocations: 1.188 MB / 302 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.271e-05/0.1397, allocations: 179.1 kB / 302.2 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000237/0.14, allocations: 233.3 kB / 302.4 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00185/0.1418, allocations: 1.791 MB / 304.2 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.226e-05/0.1419, allocations: 8.875 kB / 304.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001569/0.142, allocations: 98.78 kB / 304.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-05/0.1421, allocations: 109.5 kB / 304.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000982/0.1431, allocations: 0.696 MB / 305.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005964/0.149, allocations: 6.193 MB / 311.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007787/0.1498, allocations: 0.7551 MB / 312.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005148/0.1503, allocations: 461.8 kB / 312.5 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001607/0.1505, allocations: 61.44 kB / 312.6 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.1505, allocations: 48.75 kB / 312.6 MB, free: 11.28 MB / 266.7 MB Notification: Performance of pre-optimization done (n=116): time 3.416e-06/0.1505, allocations: 4 kB / 312.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=131): time 0.004082/0.1546, allocations: 2.623 MB / 315.2 MB, free: 8.988 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.97e-05/0.1546, allocations: 68.72 kB / 315.3 MB, free: 8.906 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000663/0.1553, allocations: 1.13 MB / 316.4 MB, free: 7.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.779e-05/0.1553, allocations: 49.7 kB / 316.5 MB, free: 7.926 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002286/0.1556, allocations: 0.9699 MB / 317.5 MB, free: 7.016 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.1557, allocations: 467.3 kB / 317.9 MB, free: 6.586 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002284/0.156, allocations: 273.6 kB / 318.2 MB, free: 6.344 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.212e-05/0.156, allocations: 304.7 kB / 318.5 MB, free: 6.047 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002207/0.1562, allocations: 190.8 kB / 318.7 MB, free: 5.859 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000293/0.1565, allocations: 0.5593 MB / 319.2 MB, free: 5.168 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006134/0.1571, allocations: 0.9164 MB / 320.1 MB, free: 4.168 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.1571, allocations: 4 kB / 320.1 MB, free: 4.164 MB / 266.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.001108/0.1582, allocations: 1.044 MB / 321.2 MB, free: 3.191 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.1582, allocations: 8.344 kB / 321.2 MB, free: 3.184 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.1582, allocations: 19.94 kB / 321.2 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004328/0.1587, allocations: 241.3 kB / 321.4 MB, free: 2.922 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005938/0.1593, allocations: 319.5 kB / 321.8 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002333/0.1616, allocations: 4.7 MB / 326.5 MB, free: 13.74 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005962/0.1622, allocations: 59.88 kB / 326.5 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.077e-05/0.1623, allocations: 51.98 kB / 326.6 MB, free: 13.63 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005913/0.1629, allocations: 211.2 kB / 326.8 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001982/0.1631, allocations: 147.8 kB / 326.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001107/0.1642, allocations: 0.8967 MB / 327.8 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.1642, allocations: 12 kB / 327.8 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1642, allocations: 6.406 kB / 327.8 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.1642, allocations: 15.97 kB / 327.8 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003185/0.1674, allocations: 2.594 MB / 330.4 MB, free: 10.03 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.1674, allocations: 4 kB / 330.4 MB, free: 10.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004645/0.1678, allocations: 206.5 kB / 330.6 MB, free: 9.832 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005837/0.1684, allocations: 323.8 kB / 331 MB, free: 9.508 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.258e-05/0.1685, allocations: 31.98 kB / 331 MB, free: 9.477 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003004/0.1715, allocations: 5.909 MB / 336.9 MB, free: 3.301 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.1715, allocations: 7 kB / 336.9 MB, free: 3.297 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/0.173, allocations: 1.315 MB / 338.2 MB, free: 1.945 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003904/0.1734, allocations: 229.5 kB / 338.4 MB, free: 1.723 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.1735, allocations: 27.98 kB / 338.5 MB, free: 1.695 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003798/0.1739, allocations: 51.97 kB / 338.5 MB, free: 1.645 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.174, allocations: 107.9 kB / 338.6 MB, free: 1.543 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.67e-05/0.1741, allocations: 27.98 kB / 338.7 MB, free: 1.516 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004901/0.1746, allocations: 0.5697 MB / 339.2 MB, free: 1.012 MB / 282.7 MB Notification: Performance of sort global known variables: time 2e-08/0.1746, allocations: 0 / 339.2 MB, free: 1.012 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001201/0.1758, allocations: 0.4921 MB / 339.7 MB, free: 0.5195 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,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.000266/0.176, allocations: 187.9 kB / 339.9 MB, free: 356 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.1773, allocations: 1.192 MB / 341.1 MB, free: 15.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.09e-05/0.1773, allocations: 20.5 kB / 341.1 MB, free: 15.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008055/0.1781, allocations: 0.9494 MB / 342.1 MB, free: 14.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009914/0.1791, allocations: 424.3 kB / 342.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004831/0.1839, allocations: 4.05 MB / 346.5 MB, free: 9.699 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004826/0.1844, allocations: 0.574 MB / 347.1 MB, free: 9.098 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005326/0.185, allocations: 222.4 kB / 347.3 MB, free: 8.875 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006732/0.1856, allocations: 439 kB / 347.8 MB, free: 8.441 MB / 298.7 MB Notification: Performance of SimCode: time 1.212e-06/0.1856, allocations: 0 / 347.8 MB, free: 8.441 MB / 298.7 MB Notification: Performance of Templates: time 0.03301/0.2187, allocations: 27.32 MB / 375.1 MB, free: 13.6 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_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.208621202968061]