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.001408/0.001408, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001488/0.001488, allocations: 168.8 kB / 23.95 MB, free: 4.172 MB / 14.72 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.449/1.449, allocations: 177.2 MB / 204.3 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] 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.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",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.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 325.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.76e-05/2.937e-05, allocations: 5.375 kB / 325.1 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01453/0.01456, allocations: 10.13 MB / 335.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01049/0.02505, allocations: 3.73 MB / 338.9 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002759/0.02781, allocations: 74.78 kB / 339 MB, free: 6.512 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0029/0.03071, allocations: 0.8254 MB / 339.8 MB, free: 5.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003978/0.03469, allocations: 1.035 MB / 340.9 MB, free: 5.023 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001644/0.03633, allocations: 0.5222 MB / 341.4 MB, free: 4.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005469/0.0418, allocations: 3.355 MB / 344.8 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003068/0.04487, allocations: 1.423 MB / 346.2 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004915/0.04979, allocations: 2.152 MB / 348.3 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003491/0.05328, allocations: 1.566 MB / 349.9 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009877/0.05426, allocations: 392 kB / 350.3 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001776/0.05604, allocations: 0.601 MB / 350.9 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001237/0.05728, allocations: 1.102 MB / 352 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002104/0.05938, allocations: 1.193 MB / 353.2 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007228/0.06661, allocations: 5.126 MB / 358.3 MB, free: 3.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.06662, allocations: 0 / 358.3 MB, free: 3.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.06662, allocations: 0 / 358.3 MB, free: 3.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001512/0.06677, allocations: 0 / 358.3 MB, free: 3.766 MB / 318.1 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.009681/0.07645, allocations: 3.468 MB / 361.8 MB, free: 252 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.865e-05/0.07651, allocations: 16.03 kB / 361.8 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002059/0.07857, allocations: 458.8 kB / 362.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003846/0.08241, allocations: 1.791 MB / 364 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001834/0.0826, allocations: 193.3 kB / 364.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004399/0.08304, allocations: 248.3 kB / 364.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006554/0.08959, allocations: 3.373 MB / 367.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.531e-05/0.08966, allocations: 7.938 kB / 367.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002617/0.08992, allocations: 108 kB / 367.9 MB, free: 9.918 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001921/0.09011, allocations: 120.9 kB / 368.1 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005448/0.09556, allocations: 2.697 MB / 370.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0188/0.1144, allocations: 8.91 MB / 379.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002469/0.1168, allocations: 1.243 MB / 380.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00201/0.1188, allocations: 0.9834 MB / 381.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002624/0.1191, allocations: 52.95 kB / 381.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.971e-05/0.1191, allocations: 47.56 kB / 382 MB, free: 11.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=115): time 3.817e-06/0.1191, allocations: 0 / 382 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=134): time 0.01957/0.1387, allocations: 7.064 MB / 389.1 MB, free: 4.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.1388, allocations: 64.72 kB / 389.1 MB, free: 4.355 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002803/0.1416, allocations: 1.716 MB / 390.8 MB, free: 2.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001705/0.1417, allocations: 49.7 kB / 390.9 MB, free: 2.578 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/0.1429, allocations: 1.29 MB / 392.2 MB, free: 1.273 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000498/0.1434, allocations: 483.8 kB / 392.6 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005517/0.144, allocations: 299.5 kB / 392.9 MB, free: 0.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000216/0.1442, allocations: 305.1 kB / 393.2 MB, free: 204 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00155/0.1457, allocations: 0.8159 MB / 394.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002063/0.1478, allocations: 1.308 MB / 395.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003794/0.1516, allocations: 2.258 MB / 397.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/0.1516, allocations: 4 kB / 397.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005553/0.1571, allocations: 2.709 MB / 400.3 MB, free: 8.652 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/0.1572, allocations: 12 kB / 400.3 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.578e-05/0.1572, allocations: 16 kB / 400.4 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/0.1583, allocations: 418.5 kB / 400.8 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.1599, allocations: 395.3 kB / 401.2 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00723/0.1671, allocations: 5.492 MB / 406.6 MB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001756/0.1689, allocations: 123.9 kB / 406.8 MB, free: 2.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001777/0.1691, allocations: 71.98 kB / 406.8 MB, free: 1.934 MB / 366.1 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.001489/0.1706, allocations: 0.8008 MB / 407.6 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004418/0.171, allocations: 194.8 kB / 407.8 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004883/0.1759, allocations: 2.291 MB / 410.1 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.645e-05/0.1759, allocations: 20 kB / 410.1 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.1759, allocations: 4 kB / 410.1 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.712e-05/0.1759, allocations: 7.969 kB / 410.1 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01006/0.186, allocations: 4.527 MB / 414.7 MB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.186, allocations: 8 kB / 414.7 MB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/0.1871, allocations: 252.2 kB / 414.9 MB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001348/0.1885, allocations: 462.2 kB / 415.4 MB, free: 9.234 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.1886, allocations: 39.98 kB / 415.4 MB, free: 9.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008456/0.1971, allocations: 6.898 MB / 422.3 MB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.1971, allocations: 4 kB / 422.3 MB, free: 1.992 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007063/0.2041, allocations: 3.463 MB / 425.8 MB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001371/0.2055, allocations: 370.6 kB / 426.1 MB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008979/0.2064, allocations: 39.94 kB / 426.2 MB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001785/0.2082, allocations: 99.88 kB / 426.3 MB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004155/0.2086, allocations: 112.7 kB / 426.4 MB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/0.2087, allocations: 47.92 kB / 426.4 MB, free: 13.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002175/0.2109, allocations: 1.161 MB / 427.6 MB, free: 12.63 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2109, allocations: 0 / 427.6 MB, free: 12.63 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002325/0.2132, allocations: 0.543 MB / 428.1 MB, free: 12.09 MB / 398.1 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.0005357/0.2138, allocations: 227 kB / 428.4 MB, free: 11.86 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004695/0.2185, allocations: 2.267 MB / 430.6 MB, free: 9.566 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/0.2185, allocations: 7.875 kB / 430.6 MB, free: 9.559 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003029/0.2215, allocations: 1.443 MB / 432.1 MB, free: 8.078 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002703/0.2242, allocations: 372.6 kB / 432.4 MB, free: 7.719 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009548/0.2337, allocations: 5.045 MB / 437.5 MB, free: 2.582 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001832/0.2356, allocations: 1.443 MB / 438.9 MB, free: 1.102 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001405/0.237, allocations: 410.3 kB / 439.3 MB, free: 0.6953 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004557/0.2374, allocations: 132.5 kB / 439.5 MB, free: 0.5625 MB / 398.1 MB Notification: Performance of SimCode: time 1.242e-06/0.2374, allocations: 0 / 439.5 MB, free: 0.5625 MB / 398.1 MB Notification: Performance of Templates: time 0.0516/0.289, allocations: 26.28 MB / 465.8 MB, free: 6.57 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.132965754717588]