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.001441/0.001441, 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.001666/0.001666, allocations: 141.1 kB / 24.54 MB, free: 28 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 0.9496/0.9496, allocations: 173.3 MB / 201.1 MB, free: 9.34 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.904e-06/1.904e-06, allocations: 0 / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.795e-05/2.986e-05, allocations: 6.25 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01012/0.01015, allocations: 11.35 MB / 279.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006267/0.01642, allocations: 3.799 MB / 283.2 MB, free: 7.203 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001371/0.01779, allocations: 75.56 kB / 283.2 MB, free: 7.129 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001553/0.01934, allocations: 0.8272 MB / 284.1 MB, free: 6.301 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002114/0.02145, allocations: 1.028 MB / 285.1 MB, free: 5.266 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008978/0.02235, allocations: 0.5186 MB / 285.6 MB, free: 4.746 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002951/0.0253, allocations: 3.322 MB / 288.9 MB, free: 1.406 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1262/0.1515, allocations: 1.429 MB / 290.4 MB, free: 16.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003497/0.155, allocations: 2.401 MB / 292.8 MB, free: 16.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00255/0.1575, allocations: 1.596 MB / 294.4 MB, free: 16.69 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009696/0.1585, allocations: 376.1 kB / 294.7 MB, free: 16.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00109/0.1596, allocations: 0.5886 MB / 295.3 MB, free: 16.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008312/0.1604, allocations: 1.085 MB / 296.4 MB, free: 16.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001827/0.1622, allocations: 1.176 MB / 297.6 MB, free: 16.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003227/0.1655, allocations: 2.778 MB / 300.3 MB, free: 16.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1655, allocations: 0 / 300.3 MB, free: 16.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1655, allocations: 2.594 kB / 300.4 MB, free: 16.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001165/0.1656, allocations: 0 / 300.4 MB, free: 16.39 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.005302/0.1709, allocations: 3.573 MB / 303.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.1709, allocations: 10.42 kB / 303.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001036/0.172, allocations: 0.6196 MB / 304.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001865/0.1738, allocations: 1.694 MB / 306.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.939e-05/0.1739, allocations: 188.9 kB / 306.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002148/0.1741, allocations: 255.2 kB / 306.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002464/0.1766, allocations: 2.033 MB / 308.7 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.45e-05/0.1766, allocations: 15.33 kB / 308.7 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001425/0.1768, allocations: 98.09 kB / 308.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.472e-05/0.1769, allocations: 119.4 kB / 308.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001705/0.1786, allocations: 0.9076 MB / 309.8 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008209/0.1868, allocations: 8.382 MB / 318.2 MB, free: 4.945 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008956/0.1877, allocations: 0.7041 MB / 318.9 MB, free: 4.246 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006318/0.1883, allocations: 0.5007 MB / 319.4 MB, free: 3.742 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001545/0.1885, allocations: 56.97 kB / 319.5 MB, free: 3.688 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.496e-05/0.1885, allocations: 46.39 kB / 319.5 MB, free: 3.629 MB / 266.7 MB Notification: Performance of pre-optimization done (n=115): time 2.325e-06/0.1885, allocations: 0 / 319.5 MB, free: 3.629 MB / 266.7 MB Notification: Performance of matching and sorting (n=134): time 0.005295/0.1938, allocations: 3.579 MB / 323.1 MB, free: 60 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.439e-05/0.1939, allocations: 68.19 kB / 323.2 MB, free: 15.98 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001511/0.1954, allocations: 1.473 MB / 324.7 MB, free: 14.49 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.812e-05/0.1954, allocations: 45.7 kB / 324.7 MB, free: 14.44 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006974/0.1961, allocations: 1.371 MB / 326.1 MB, free: 13.06 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002923/0.1964, allocations: 0.4925 MB / 326.6 MB, free: 12.57 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003113/0.1967, allocations: 305.1 kB / 326.9 MB, free: 12.27 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.582e-05/0.1968, allocations: 480.8 kB / 327.3 MB, free: 11.79 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004213/0.1973, allocations: 247.8 kB / 327.6 MB, free: 11.55 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007111/0.198, allocations: 0.9537 MB / 328.5 MB, free: 10.3 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001488/0.1995, allocations: 1.329 MB / 329.9 MB, free: 8.746 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.1995, allocations: 8 kB / 329.9 MB, free: 8.738 MB / 282.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.002001/0.2015, allocations: 1.528 MB / 331.4 MB, free: 7.297 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.2015, allocations: 12 kB / 331.4 MB, free: 7.285 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/0.2015, allocations: 20.28 kB / 331.4 MB, free: 7.266 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005751/0.2021, allocations: 257.1 kB / 331.7 MB, free: 7.012 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007653/0.2028, allocations: 384.8 kB / 332.1 MB, free: 6.656 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003707/0.2066, allocations: 4.942 MB / 337 MB, free: 1.516 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008519/0.2074, allocations: 103.9 kB / 337.1 MB, free: 1.414 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.2075, allocations: 71.98 kB / 337.2 MB, free: 1.344 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.0006375/0.2081, allocations: 262.9 kB / 337.4 MB, free: 1.102 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002804/0.2084, allocations: 242.7 kB / 337.7 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001593/0.21, allocations: 1.161 MB / 338.8 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/0.21, allocations: 16 kB / 338.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.21, allocations: 7.984 kB / 338.8 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.2101, allocations: 7.984 kB / 338.8 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004346/0.2144, allocations: 3.353 MB / 342.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.076e-05/0.2144, allocations: 11.97 kB / 342.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005319/0.2149, allocations: 230.8 kB / 342.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006477/0.2156, allocations: 310.5 kB / 342.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.998e-05/0.2157, allocations: 31.98 kB / 342.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004055/0.2197, allocations: 6.647 MB / 349.4 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.2197, allocations: 4 kB / 349.4 MB, free: 4.699 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002524/0.2223, allocations: 1.766 MB / 351.2 MB, free: 2.848 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005114/0.2228, allocations: 322.7 kB / 351.5 MB, free: 2.531 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001437/0.2229, allocations: 31.98 kB / 351.5 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005/0.2234, allocations: 79.92 kB / 351.6 MB, free: 2.422 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002061/0.2236, allocations: 120.3 kB / 351.7 MB, free: 2.309 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.103e-05/0.2237, allocations: 44 kB / 351.8 MB, free: 2.266 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009653/0.2246, allocations: 0.8601 MB / 352.6 MB, free: 1.406 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2246, allocations: 0 / 352.6 MB, free: 1.406 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00156/0.2262, allocations: 0.5313 MB / 353.2 MB, free: 0.875 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.0003908/0.2266, allocations: 226.3 kB / 353.4 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001819/0.2284, allocations: 1.434 MB / 354.8 MB, free: 15.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.2284, allocations: 1 kB / 354.8 MB, free: 15.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0011/0.2295, allocations: 1.12 MB / 355.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.2306, allocations: 379.9 kB / 356.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006209/0.2368, allocations: 4.418 MB / 360.7 MB, free: 9.223 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005575/0.2374, allocations: 0.6532 MB / 361.4 MB, free: 8.543 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007384/0.2381, allocations: 338.3 kB / 361.7 MB, free: 8.207 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002775/0.2384, allocations: 120.5 kB / 361.8 MB, free: 8.09 MB / 314.7 MB Notification: Performance of SimCode: time 1.343e-06/0.2384, allocations: 0 / 361.8 MB, free: 8.09 MB / 314.7 MB Notification: Performance of Templates: time 0.03795/0.2763, allocations: 26.53 MB / 388.4 MB, free: 13.96 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.7981144478544593]