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.001301/0.001301, allocations: 79.91 kB / 21.18 MB, free: 3.387 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.00137/0.00137, allocations: 141.1 kB / 24.54 MB, free: 32 kB / 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.045/1.045, allocations: 173.4 MB / 201.1 MB, free: 9.359 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.543e-06/1.543e-06, allocations: 3.938 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.187e-05/3.341e-05, allocations: 10.25 kB / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01028/0.01031, allocations: 11.36 MB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007572/0.01788, allocations: 3.807 MB / 283.2 MB, free: 7.215 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001413/0.0193, allocations: 75.56 kB / 283.2 MB, free: 7.141 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002051/0.02135, allocations: 0.8194 MB / 284.1 MB, free: 6.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002489/0.02384, allocations: 1.028 MB / 285.1 MB, free: 5.285 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.02493, allocations: 0.5224 MB / 285.6 MB, free: 4.762 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003321/0.02826, allocations: 3.314 MB / 288.9 MB, free: 1.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1176/0.1459, allocations: 1.432 MB / 290.4 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003198/0.1491, allocations: 2.163 MB / 292.5 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002654/0.1518, allocations: 1.675 MB / 294.2 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008162/0.1526, allocations: 390.2 kB / 294.6 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0011/0.1537, allocations: 0.6065 MB / 295.2 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000884/0.1546, allocations: 1.126 MB / 296.3 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00162/0.1562, allocations: 1.203 MB / 297.5 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003238/0.1594, allocations: 2.831 MB / 300.3 MB, free: 16.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1594, allocations: 0 / 300.3 MB, free: 16.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1594, allocations: 0 / 300.3 MB, free: 16.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.692e-05/0.1595, allocations: 1.094 kB / 300.3 MB, free: 16.36 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.004399/0.1639, allocations: 3.647 MB / 304 MB, free: 14.42 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.164, allocations: 7.953 kB / 304 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009482/0.1649, allocations: 0.6227 MB / 304.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/0.1666, allocations: 1.678 MB / 306.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.876e-05/0.1667, allocations: 189.1 kB / 306.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002217/0.1669, allocations: 249.8 kB / 306.7 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002311/0.1693, allocations: 2.036 MB / 308.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.319e-05/0.1693, allocations: 6.688 kB / 308.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001492/0.1694, allocations: 108.4 kB / 308.9 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.37e-05/0.1695, allocations: 110.6 kB / 309 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001643/0.1712, allocations: 0.9317 MB / 309.9 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007499/0.1787, allocations: 8.516 MB / 318.4 MB, free: 4.742 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000822/0.1795, allocations: 0.6667 MB / 319.1 MB, free: 4.082 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006636/0.1802, allocations: 0.4991 MB / 319.6 MB, free: 3.578 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001587/0.1803, allocations: 53.62 kB / 319.7 MB, free: 3.531 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.1803, allocations: 50.39 kB / 319.7 MB, free: 3.469 MB / 266.7 MB Notification: Performance of pre-optimization done (n=115): time 2.715e-06/0.1803, allocations: 0 / 319.7 MB, free: 3.469 MB / 266.7 MB Notification: Performance of matching and sorting (n=134): time 0.005871/0.1862, allocations: 3.607 MB / 323.3 MB, free: 15.87 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.935e-05/0.1863, allocations: 68.66 kB / 323.4 MB, free: 15.79 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001438/0.1877, allocations: 1.485 MB / 324.9 MB, free: 14.29 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.705e-05/0.1878, allocations: 45.7 kB / 324.9 MB, free: 14.23 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000691/0.1884, allocations: 1.371 MB / 326.3 MB, free: 12.85 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002821/0.1887, allocations: 493.5 kB / 326.8 MB, free: 12.38 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003197/0.189, allocations: 308.2 kB / 327.1 MB, free: 12.07 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.1892, allocations: 483.5 kB / 327.5 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004436/0.1896, allocations: 255.8 kB / 327.8 MB, free: 11.34 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007813/0.1904, allocations: 0.9467 MB / 328.7 MB, free: 10.11 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.1917, allocations: 1.339 MB / 330.1 MB, free: 8.535 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/0.1917, allocations: 8 kB / 330.1 MB, free: 8.527 MB / 282.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.002075/0.1938, allocations: 1.536 MB / 331.6 MB, free: 7.082 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.1938, allocations: 12 kB / 331.6 MB, free: 7.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.1938, allocations: 19.98 kB / 331.6 MB, free: 7.051 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005731/0.1944, allocations: 258.8 kB / 331.9 MB, free: 6.789 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007694/0.1952, allocations: 393.2 kB / 332.3 MB, free: 6.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003072/0.1983, allocations: 4.94 MB / 337.2 MB, free: 1.293 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006865/0.1989, allocations: 115.8 kB / 337.3 MB, free: 1.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-05/0.199, allocations: 71.98 kB / 337.4 MB, free: 1.109 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.000488/0.1995, allocations: 259.4 kB / 337.7 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002493/0.1998, allocations: 238.8 kB / 337.9 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001555/0.2013, allocations: 1.186 MB / 339.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-05/0.2014, allocations: 16 kB / 339.1 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.2014, allocations: 4 kB / 339.1 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.2014, allocations: 7.969 kB / 339.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004079/0.2054, allocations: 3.406 MB / 342.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.2055, allocations: 4 kB / 342.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005353/0.206, allocations: 251 kB / 342.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006351/0.2066, allocations: 306 kB / 343.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.368e-05/0.2067, allocations: 35.98 kB / 343.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003663/0.2103, allocations: 6.734 MB / 349.8 MB, free: 4.305 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/0.2104, allocations: 11.12 kB / 349.8 MB, free: 4.297 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002239/0.2126, allocations: 1.773 MB / 351.6 MB, free: 2.434 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004859/0.2131, allocations: 346.6 kB / 351.9 MB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001354/0.2132, allocations: 31.05 kB / 352 MB, free: 2.066 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005298/0.2137, allocations: 87.89 kB / 352.1 MB, free: 1.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.2139, allocations: 119.9 kB / 352.2 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.54e-05/0.214, allocations: 47.98 kB / 352.2 MB, free: 1.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009154/0.2149, allocations: 0.8797 MB / 353.1 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2149, allocations: 0 / 353.1 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001329/0.2162, allocations: 0.5428 MB / 353.7 MB, free: 408 kB / 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.0003544/0.2166, allocations: 220.8 kB / 353.9 MB, free: 192 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001794/0.2184, allocations: 1.43 MB / 355.3 MB, free: 14.78 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.2184, allocations: 0 / 355.3 MB, free: 14.78 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.2195, allocations: 1.141 MB / 356.4 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.2206, allocations: 396.6 kB / 356.8 MB, free: 13.24 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005191/0.2258, allocations: 4.429 MB / 361.3 MB, free: 8.707 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.2263, allocations: 0.6454 MB / 361.9 MB, free: 8.031 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006099/0.2269, allocations: 338.3 kB / 362.2 MB, free: 7.695 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002859/0.2272, allocations: 120.5 kB / 362.3 MB, free: 7.578 MB / 314.7 MB Notification: Performance of SimCode: time 1.032e-06/0.2272, allocations: 0 / 362.3 MB, free: 7.578 MB / 314.7 MB Notification: Performance of Templates: time 0.03026/0.2574, allocations: 26.41 MB / 388.8 MB, free: 13.55 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.884893011767417]