Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.0009939/0.0009939, 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.001568/0.001568, allocations: 147.9 kB / 24.89 MB, free: 8.773 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 1.109/1.109, allocations: 173.4 MB / 201.5 MB, free: 8.238 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_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|constantSpeed.phi|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|constantSpeed.phi|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 268.5 MB, free: 9.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.308e-05/2.47e-05, allocations: 2.312 kB / 268.5 MB, free: 9.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01181/0.01183, allocations: 11.1 MB / 279.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006895/0.01873, allocations: 3.93 MB / 283.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.02029, allocations: 75.56 kB / 283.6 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001686/0.02198, allocations: 0.8557 MB / 284.5 MB, free: 9.742 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002267/0.02425, allocations: 1.017 MB / 285.5 MB, free: 8.719 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009003/0.02515, allocations: 0.5224 MB / 286 MB, free: 8.195 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00292/0.02807, allocations: 3.33 MB / 289.3 MB, free: 4.848 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001568/0.02963, allocations: 1.458 MB / 290.8 MB, free: 3.305 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002753/0.03239, allocations: 2.382 MB / 293.2 MB, free: 0.918 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001857/0.03424, allocations: 1.605 MB / 294.8 MB, free: 15.31 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006597/0.0349, allocations: 376 kB / 295.2 MB, free: 14.94 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009443/0.03585, allocations: 0.6048 MB / 295.8 MB, free: 14.34 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000681/0.03653, allocations: 1.075 MB / 296.8 MB, free: 13.26 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001231/0.03776, allocations: 1.173 MB / 298 MB, free: 12.08 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002543/0.0403, allocations: 2.764 MB / 300.8 MB, free: 9.309 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.04031, allocations: 3.984 kB / 300.8 MB, free: 9.305 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.04031, allocations: 0 / 300.8 MB, free: 9.305 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.137e-05/0.04038, allocations: 0 / 300.8 MB, free: 9.305 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.003577/0.04396, allocations: 3.216 MB / 304 MB, free: 6.043 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.04399, allocations: 12.02 kB / 304 MB, free: 6.031 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008835/0.04488, allocations: 0.5161 MB / 304.5 MB, free: 5.516 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001484/0.04636, allocations: 1.217 MB / 305.7 MB, free: 4.246 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.04646, allocations: 189.4 kB / 305.9 MB, free: 4.059 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002252/0.04669, allocations: 252.3 kB / 306.2 MB, free: 3.812 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002137/0.04883, allocations: 1.915 MB / 308.1 MB, free: 1.789 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.659e-05/0.04887, allocations: 11.89 kB / 308.1 MB, free: 1.777 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001717/0.04904, allocations: 100 kB / 308.2 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-05/0.04914, allocations: 116.9 kB / 308.3 MB, free: 1.562 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.05025, allocations: 0.7198 MB / 309 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007822/0.05807, allocations: 6.741 MB / 315.8 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007617/0.05883, allocations: 0.6515 MB / 316.4 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000623/0.05946, allocations: 424.4 kB / 316.8 MB, free: 8.668 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001851/0.05964, allocations: 60.95 kB / 316.9 MB, free: 8.609 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.05967, allocations: 43.56 kB / 316.9 MB, free: 8.555 MB / 298.7 MB Notification: Performance of pre-optimization done (n=115): time 3.666e-06/0.05968, allocations: 0 / 316.9 MB, free: 8.555 MB / 298.7 MB Notification: Performance of matching and sorting (n=134): time 0.005159/0.06484, allocations: 2.907 MB / 319.8 MB, free: 5.625 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.002e-05/0.06487, allocations: 72.66 kB / 319.9 MB, free: 5.543 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009025/0.06577, allocations: 1.207 MB / 321.1 MB, free: 4.328 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.949e-05/0.06583, allocations: 45.7 kB / 321.2 MB, free: 4.277 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004261/0.06625, allocations: 1.066 MB / 322.2 MB, free: 3.195 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002314/0.06649, allocations: 483.8 kB / 322.7 MB, free: 2.719 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000288/0.06677, allocations: 283.3 kB / 323 MB, free: 2.434 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.589e-05/0.06684, allocations: 309.1 kB / 323.3 MB, free: 2.129 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002783/0.06712, allocations: 186.7 kB / 323.5 MB, free: 1.945 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004647/0.06758, allocations: 0.6637 MB / 324.1 MB, free: 1.066 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008699/0.06845, allocations: 1.037 MB / 325.2 MB, free: 15.81 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.214e-06/0.06846, allocations: 4 kB / 325.2 MB, free: 15.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.001421/0.06988, allocations: 1.132 MB / 326.3 MB, free: 14.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.0699, allocations: 12 kB / 326.3 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.06992, allocations: 16 kB / 326.3 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005132/0.07043, allocations: 254.1 kB / 326.6 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007695/0.0712, allocations: 371.4 kB / 326.9 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002497/0.0737, allocations: 3.615 MB / 330.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007359/0.07443, allocations: 71.92 kB / 330.6 MB, free: 10.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.986e-05/0.07452, allocations: 60 kB / 330.7 MB, free: 10.07 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 182 * 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,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005007/0.07502, allocations: 216.2 kB / 330.9 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000263/0.07529, allocations: 159.8 kB / 331.1 MB, free: 9.691 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001164/0.07645, allocations: 0.9093 MB / 332 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.025e-05/0.07647, allocations: 12 kB / 332 MB, free: 8.742 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.07648, allocations: 7.938 kB / 332 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.07649, allocations: 3.984 kB / 332 MB, free: 8.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003272/0.07976, allocations: 2.692 MB / 334.7 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.07976, allocations: 7.984 kB / 334.7 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006226/0.08039, allocations: 231.7 kB / 334.9 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006125/0.081, allocations: 325.8 kB / 335.2 MB, free: 5.352 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.99e-05/0.08106, allocations: 43.92 kB / 335.3 MB, free: 5.309 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002996/0.08406, allocations: 4.793 MB / 340.1 MB, free: 236 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.08406, allocations: 4 kB / 340.1 MB, free: 232 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001999/0.08606, allocations: 1.366 MB / 341.4 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004597/0.08652, allocations: 230.7 kB / 341.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/0.08666, allocations: 32 kB / 341.7 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004557/0.08712, allocations: 63.89 kB / 341.8 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/0.0873, allocations: 108.7 kB / 341.9 MB, free: 14.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.929e-05/0.08736, allocations: 36.05 kB / 341.9 MB, free: 14.3 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006001/0.08796, allocations: 0.6112 MB / 342.5 MB, free: 13.7 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.08796, allocations: 0 / 342.5 MB, free: 13.7 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001427/0.08939, allocations: 0.5389 MB / 343 MB, free: 13.16 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 110 * 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,12,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.0003411/0.08973, allocations: 203.9 kB / 343.2 MB, free: 12.95 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00146/0.09119, allocations: 1.138 MB / 344.4 MB, free: 11.78 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-05/0.09122, allocations: 21.81 kB / 344.4 MB, free: 11.76 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008331/0.09206, allocations: 0.8492 MB / 345.3 MB, free: 10.88 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009273/0.09298, allocations: 380.8 kB / 345.6 MB, free: 10.5 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005361/0.09834, allocations: 4.231 MB / 349.9 MB, free: 6.156 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004799/0.09882, allocations: 0.579 MB / 350.4 MB, free: 5.551 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005781/0.0994, allocations: 234.5 kB / 350.7 MB, free: 5.316 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000673/0.1001, allocations: 405.1 kB / 351.1 MB, free: 4.922 MB / 330.7 MB Notification: Performance of SimCode: time 2.485e-06/0.1001, allocations: 0 / 351.1 MB, free: 4.922 MB / 330.7 MB Notification: Performance of Templates: time 0.1319/0.232, allocations: 26.85 MB / 377.9 MB, free: 73.58 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.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.7144691930152476]