Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008172/0.0008172, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00133/0.002147, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007915/0.0007915, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001148/0.00194, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.002/1.002, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09501/1.097, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.223e-06/1.223e-06, allocations: 0 / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.64e-05/1.762e-05, allocations: 10.25 kB / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.008658/0.008676, allocations: 11.2 MB / 255.9 MB, free: 2.957 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007017/0.01569, allocations: 4.024 MB / 259.9 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001586/0.01728, allocations: 75.56 kB / 260 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001592/0.01887, allocations: 0.8479 MB / 260.9 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002599/0.02147, allocations: 1.028 MB / 261.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.02255, allocations: 0.5263 MB / 262.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003636/0.02618, allocations: 3.346 MB / 265.8 MB, free: 9.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00177/0.02795, allocations: 1.465 MB / 267.2 MB, free: 7.523 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003707/0.03166, allocations: 2.632 MB / 269.9 MB, free: 4.871 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002136/0.03379, allocations: 1.594 MB / 271.5 MB, free: 3.273 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007233/0.03452, allocations: 376 kB / 271.8 MB, free: 2.906 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001053/0.03557, allocations: 0.601 MB / 272.4 MB, free: 2.305 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006987/0.03627, allocations: 0.8767 MB / 273.3 MB, free: 1.426 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001244/0.03751, allocations: 0.9631 MB / 274.3 MB, free: 472 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1247/0.1622, allocations: 2.595 MB / 276.9 MB, free: 7.672 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.17e-05/0.1622, allocations: 0 / 276.9 MB, free: 7.672 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1622, allocations: 1.094 kB / 276.9 MB, free: 7.672 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001461/0.1624, allocations: 0.5 kB / 276.9 MB, free: 7.672 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.00653/0.1689, allocations: 3.857 MB / 280.7 MB, free: 6.316 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.1689, allocations: 10.38 kB / 280.7 MB, free: 6.316 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001628/0.1706, allocations: 0.621 MB / 281.4 MB, free: 6.219 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002168/0.1727, allocations: 1.235 MB / 282.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/0.1729, allocations: 189.9 kB / 282.8 MB, free: 5.734 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003211/0.1732, allocations: 252.5 kB / 283 MB, free: 5.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003173/0.1764, allocations: 1.917 MB / 284.9 MB, free: 5.348 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.127e-05/0.1764, allocations: 9.266 kB / 284.9 MB, free: 5.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000184/0.1766, allocations: 99.69 kB / 285 MB, free: 5.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001203/0.1767, allocations: 119.4 kB / 285.2 MB, free: 5.332 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.1782, allocations: 0.7146 MB / 285.9 MB, free: 5.238 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009201/0.1874, allocations: 6.791 MB / 292.7 MB, free: 2.656 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008878/0.1883, allocations: 0.6367 MB / 293.3 MB, free: 2.566 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006105/0.1889, allocations: 429.2 kB / 293.7 MB, free: 2.547 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001759/0.1891, allocations: 52.05 kB / 293.8 MB, free: 2.547 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.1891, allocations: 48.62 kB / 293.8 MB, free: 2.508 MB / 266.7 MB Notification: Performance of pre-optimization done (n=115): time 3.537e-06/0.1892, allocations: 4 kB / 293.8 MB, free: 2.504 MB / 266.7 MB Notification: Performance of matching and sorting (n=134): time 0.006139/0.1953, allocations: 2.936 MB / 296.8 MB, free: 1.949 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.671e-05/0.1953, allocations: 81.98 kB / 296.8 MB, free: 1.883 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001031/0.1963, allocations: 1.217 MB / 298.1 MB, free: 1.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.779e-05/0.1964, allocations: 51.11 kB / 298.1 MB, free: 1.648 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003683/0.1968, allocations: 1.06 MB / 299.2 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002209/0.197, allocations: 486.9 kB / 299.6 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003259/0.1973, allocations: 286.9 kB / 299.9 MB, free: 488 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.789e-05/0.1974, allocations: 301.1 kB / 300.2 MB, free: 184 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003013/0.1977, allocations: 184.5 kB / 300.4 MB, free: 168 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005512/0.1982, allocations: 0.6661 MB / 301.1 MB, free: 15.58 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.1993, allocations: 1.086 MB / 302.2 MB, free: 14.88 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.1993, allocations: 8.484 kB / 302.2 MB, free: 14.88 MB / 282.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.001787/0.2011, allocations: 1.13 MB / 303.3 MB, free: 13.89 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/0.2011, allocations: 16.78 kB / 303.3 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.205e-05/0.2012, allocations: 16 kB / 303.3 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006304/0.2018, allocations: 250 kB / 303.6 MB, free: 13.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.2029, allocations: 402.7 kB / 304 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003066/0.2059, allocations: 3.612 MB / 307.6 MB, free: 9.516 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008873/0.2068, allocations: 71.92 kB / 307.6 MB, free: 9.445 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.2069, allocations: 59.98 kB / 307.7 MB, free: 9.387 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.0006014/0.2075, allocations: 220.4 kB / 307.9 MB, free: 9.188 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003006/0.2078, allocations: 151.8 kB / 308.1 MB, free: 9.039 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/0.2093, allocations: 0.9031 MB / 309 MB, free: 8.129 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.306e-05/0.2093, allocations: 12 kB / 309 MB, free: 8.117 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.2093, allocations: 4.047 kB / 309 MB, free: 8.113 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.548e-05/0.2094, allocations: 19.17 kB / 309 MB, free: 8.098 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004417/0.2138, allocations: 2.704 MB / 311.7 MB, free: 5.672 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.2138, allocations: 7.938 kB / 311.7 MB, free: 5.664 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007292/0.2145, allocations: 253.9 kB / 312 MB, free: 5.43 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003597/0.2149, allocations: 230.7 kB / 312.2 MB, free: 5.203 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006006/0.2155, allocations: 323.7 kB / 312.5 MB, free: 4.879 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.847e-05/0.2155, allocations: 39.97 kB / 312.5 MB, free: 4.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002916/0.2185, allocations: 4.791 MB / 317.3 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.2185, allocations: 7.469 kB / 317.3 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.2199, allocations: 1.371 MB / 318.7 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001496/0.2201, allocations: 31.98 kB / 318.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004399/0.2205, allocations: 59.97 kB / 318.8 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.2207, allocations: 108.3 kB / 318.9 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.037e-05/0.2207, allocations: 35.92 kB / 318.9 MB, free: 14.2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005397/0.2213, allocations: 0.6215 MB / 319.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2213, allocations: 2.953 kB / 319.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001347/0.2226, allocations: 0.5349 MB / 320.1 MB, free: 13.11 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%), (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.0003176/0.2229, allocations: 201.9 kB / 320.3 MB, free: 12.92 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.2242, allocations: 1.157 MB / 321.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-05/0.2243, allocations: 36.42 kB / 321.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008619/0.2251, allocations: 0.9315 MB / 322.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002207/0.2274, allocations: 3.582 MB / 326 MB, free: 6.609 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01784/0.2452, allocations: 4.369 MB / 330.4 MB, free: 2.188 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007118/0.2459, allocations: 0.576 MB / 330.9 MB, free: 1.582 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000993/0.2469, allocations: 234.6 kB / 331.2 MB, free: 1.348 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006965/0.2476, allocations: 413 kB / 331.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of SimCode: time 1.964e-06/0.2476, allocations: 0 / 331.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of Templates: time 0.03629/0.2839, allocations: 27.62 MB / 359.2 MB, free: 5.766 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6200431268662214]