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.00105/0.00105, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.0009655/0.0009655, allocations: 142.9 kB / 24.97 MB, free: 8.379 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.9861/0.9861, allocations: 173.3 MB / 201.5 MB, free: 9.293 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.934e-06/1.934e-06, allocations: 0 / 268.1 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.904e-05/2.097e-05, allocations: 6.25 kB / 268.1 MB, free: 6.695 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.008832/0.008853, allocations: 11.3 MB / 279.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005203/0.01406, allocations: 3.788 MB / 283.2 MB, free: 7.539 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008495/0.01491, allocations: 75.56 kB / 283.3 MB, free: 7.465 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001325/0.01623, allocations: 0.8233 MB / 284.1 MB, free: 6.641 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001518/0.01775, allocations: 1.024 MB / 285.1 MB, free: 5.609 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006615/0.01841, allocations: 0.5264 MB / 285.6 MB, free: 5.082 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002217/0.02063, allocations: 3.314 MB / 288.9 MB, free: 1.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001274/0.0219, allocations: 1.434 MB / 290.4 MB, free: 256 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1076/0.1295, allocations: 2.155 MB / 292.5 MB, free: 16.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002953/0.1324, allocations: 1.68 MB / 294.2 MB, free: 16.9 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001058/0.1335, allocations: 388 kB / 294.6 MB, free: 16.9 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001334/0.1348, allocations: 0.6091 MB / 295.2 MB, free: 16.9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001023/0.1358, allocations: 1.131 MB / 296.3 MB, free: 16.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002326/0.1382, allocations: 1.202 MB / 297.5 MB, free: 16.9 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003931/0.1421, allocations: 2.827 MB / 300.4 MB, free: 16.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.1421, allocations: 3.562 kB / 300.4 MB, free: 16.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1421, allocations: 0.5625 kB / 300.4 MB, free: 16.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001195/0.1422, allocations: 0.625 kB / 300.4 MB, free: 16.61 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.00634/0.1486, allocations: 3.639 MB / 304 MB, free: 14.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.1486, allocations: 11.17 kB / 304 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001163/0.1498, allocations: 0.6183 MB / 304.6 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002167/0.1519, allocations: 1.678 MB / 306.3 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.735e-05/0.152, allocations: 192 kB / 306.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002305/0.1523, allocations: 256.8 kB / 306.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002678/0.1549, allocations: 2.031 MB / 308.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.491e-05/0.155, allocations: 17.31 kB / 308.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001481/0.1551, allocations: 97.69 kB / 308.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.069e-05/0.1552, allocations: 120.5 kB / 309 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001707/0.1569, allocations: 0.9223 MB / 309.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008632/0.1656, allocations: 8.516 MB / 318.4 MB, free: 5.262 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008858/0.1664, allocations: 0.6703 MB / 319.1 MB, free: 4.602 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000686/0.1671, allocations: 0.4984 MB / 319.6 MB, free: 4.102 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001669/0.1673, allocations: 60.95 kB / 319.7 MB, free: 4.043 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.1673, allocations: 46.39 kB / 319.7 MB, free: 3.984 MB / 266.7 MB Notification: Performance of pre-optimization done (n=115): time 4.188e-06/0.1673, allocations: 0 / 319.7 MB, free: 3.984 MB / 266.7 MB Notification: Performance of matching and sorting (n=134): time 0.00595/0.1733, allocations: 3.613 MB / 323.3 MB, free: 384 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.73e-05/0.1733, allocations: 68.66 kB / 323.4 MB, free: 304 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001585/0.1749, allocations: 1.474 MB / 324.9 MB, free: 14.8 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.017e-05/0.175, allocations: 49.7 kB / 324.9 MB, free: 14.75 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006816/0.1756, allocations: 1.377 MB / 326.3 MB, free: 13.36 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002888/0.1759, allocations: 499.4 kB / 326.8 MB, free: 12.88 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003197/0.1763, allocations: 301.1 kB / 327.1 MB, free: 12.58 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.729e-05/0.1764, allocations: 476.8 kB / 327.5 MB, free: 12.11 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004658/0.1768, allocations: 255.8 kB / 327.8 MB, free: 11.86 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007587/0.1776, allocations: 0.9532 MB / 328.7 MB, free: 10.62 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.1789, allocations: 1.344 MB / 330.1 MB, free: 9.043 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.227e-06/0.1789, allocations: 4 kB / 330.1 MB, free: 9.039 MB / 282.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.0024/0.1813, allocations: 1.539 MB / 331.6 MB, free: 7.594 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.1813, allocations: 12.28 kB / 331.6 MB, free: 7.582 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/0.1814, allocations: 20 kB / 331.7 MB, free: 7.562 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006378/0.182, allocations: 252.5 kB / 331.9 MB, free: 7.305 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008162/0.1828, allocations: 395.8 kB / 332.3 MB, free: 6.941 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003514/0.1863, allocations: 4.933 MB / 337.2 MB, free: 1.809 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.1874, allocations: 115.9 kB / 337.3 MB, free: 1.695 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/0.1876, allocations: 76.03 kB / 337.4 MB, free: 1.621 MB / 282.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.0006668/0.1882, allocations: 258.5 kB / 337.7 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003041/0.1885, allocations: 238.3 kB / 337.9 MB, free: 1.148 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001827/0.1904, allocations: 1.19 MB / 339.1 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-05/0.1904, allocations: 16 kB / 339.1 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.1904, allocations: 4 kB / 339.1 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.1904, allocations: 3.984 kB / 339.1 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004727/0.1951, allocations: 3.407 MB / 342.5 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.1951, allocations: 4 kB / 342.5 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005607/0.1957, allocations: 244.8 kB / 342.8 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006895/0.1964, allocations: 305.4 kB / 343.1 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.838e-05/0.1965, allocations: 35.98 kB / 343.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004062/0.2005, allocations: 6.737 MB / 349.8 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.2005, allocations: 7.938 kB / 349.8 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002444/0.203, allocations: 1.777 MB / 351.6 MB, free: 2.949 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005682/0.2035, allocations: 342.6 kB / 352 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/0.2037, allocations: 40.05 kB / 352 MB, free: 2.574 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005704/0.2043, allocations: 91.89 kB / 352.1 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.2045, allocations: 116.6 kB / 352.2 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.284e-05/0.2045, allocations: 44.03 kB / 352.2 MB, free: 2.328 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001003/0.2055, allocations: 0.8757 MB / 353.1 MB, free: 1.457 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2055, allocations: 0 / 353.1 MB, free: 1.457 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001549/0.2071, allocations: 0.5428 MB / 353.7 MB, free: 0.9102 MB / 298.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%), (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.0003791/0.2075, allocations: 228.5 kB / 353.9 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001866/0.2093, allocations: 1.429 MB / 355.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/0.2093, allocations: 4 kB / 355.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.2107, allocations: 1.135 MB / 356.5 MB, free: 14.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.2118, allocations: 393.6 kB / 356.8 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005907/0.2177, allocations: 4.425 MB / 361.3 MB, free: 9.219 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005462/0.2183, allocations: 0.6532 MB / 361.9 MB, free: 8.535 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007644/0.219, allocations: 334.2 kB / 362.2 MB, free: 8.203 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002855/0.2193, allocations: 124.5 kB / 362.4 MB, free: 8.082 MB / 314.7 MB Notification: Performance of SimCode: time 1.944e-06/0.2193, allocations: 0 / 362.4 MB, free: 8.082 MB / 314.7 MB Notification: Performance of Templates: time 0.03352/0.2528, allocations: 26.41 MB / 388.8 MB, free: 14.07 MB / 346.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 -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.8651158020365983]