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.001045/0.001045, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001934/0.002979, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001038/0.001038, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001577/0.002615, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.001/1.001, allocations: 173.3 MB / 185.8 MB, free: 9 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1154/1.116, allocations: 52.5 MB / 238.3 MB, free: 4.441 MB / 234.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.512e-06/1.512e-06, allocations: 0 / 239.6 MB, free: 3.18 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.817e-05/1.969e-05, allocations: 10.25 kB / 239.6 MB, free: 3.168 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.009296/0.009315, allocations: 11.15 MB / 250.7 MB, free: 7.969 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006279/0.01559, allocations: 3.95 MB / 254.7 MB, free: 4.004 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001369/0.01696, allocations: 79.5 kB / 254.7 MB, free: 3.926 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001633/0.0186, allocations: 0.8441 MB / 255.6 MB, free: 3.078 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002182/0.02078, allocations: 1.032 MB / 256.6 MB, free: 2.039 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009403/0.02172, allocations: 0.5069 MB / 257.1 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00297/0.02469, allocations: 3.346 MB / 260.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001591/0.02628, allocations: 1.458 MB / 261.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003186/0.02947, allocations: 2.62 MB / 264.5 MB, free: 9.984 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001865/0.03133, allocations: 1.594 MB / 266.1 MB, free: 8.387 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000696/0.03203, allocations: 376 kB / 266.5 MB, free: 8.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001002/0.03303, allocations: 0.5971 MB / 267.1 MB, free: 7.422 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000639/0.03367, allocations: 0.8767 MB / 268 MB, free: 6.543 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009916/0.03466, allocations: 0.9592 MB / 268.9 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002481/0.03714, allocations: 2.597 MB / 271.5 MB, free: 2.977 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.318e-05/0.03715, allocations: 0 / 271.5 MB, free: 2.977 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.03716, allocations: 0 / 271.5 MB, free: 2.977 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.76e-05/0.0372, allocations: 0 / 271.5 MB, free: 2.977 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.1098/0.147, allocations: 3.831 MB / 275.4 MB, free: 24.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.147, allocations: 10.83 kB / 275.4 MB, free: 24.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001173/0.1482, allocations: 0.5888 MB / 276 MB, free: 23.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002028/0.1502, allocations: 1.219 MB / 277.2 MB, free: 23.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/0.1504, allocations: 187.7 kB / 277.4 MB, free: 23.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002874/0.1506, allocations: 252.5 kB / 277.6 MB, free: 23.54 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002833/0.1535, allocations: 1.909 MB / 279.5 MB, free: 23.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.38e-05/0.1535, allocations: 13.42 kB / 279.5 MB, free: 23.15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001617/0.1537, allocations: 104.8 kB / 279.6 MB, free: 23.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000126/0.1538, allocations: 117.2 kB / 279.8 MB, free: 23.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001518/0.1554, allocations: 0.7203 MB / 280.5 MB, free: 23.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007962/0.1633, allocations: 6.774 MB / 287.2 MB, free: 19.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007912/0.1641, allocations: 0.6527 MB / 287.9 MB, free: 19.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005265/0.1646, allocations: 425.3 kB / 288.3 MB, free: 19.67 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001587/0.1648, allocations: 62.42 kB / 288.4 MB, free: 19.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.1648, allocations: 45.06 kB / 288.4 MB, free: 19.61 MB / 266.7 MB Notification: Performance of pre-optimization done (n=115): time 3.056e-06/0.1648, allocations: 0 / 288.4 MB, free: 19.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=134): time 0.004666/0.1695, allocations: 2.915 MB / 291.3 MB, free: 18.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.194e-05/0.1695, allocations: 66.03 kB / 291.4 MB, free: 18.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007191/0.1702, allocations: 1.209 MB / 292.6 MB, free: 18.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.245e-05/0.1703, allocations: 52.52 kB / 292.7 MB, free: 18.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002785/0.1706, allocations: 1.062 MB / 293.7 MB, free: 17.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000176/0.1707, allocations: 483.3 kB / 294.2 MB, free: 17.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002295/0.171, allocations: 294 kB / 294.5 MB, free: 17.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.797e-05/0.171, allocations: 302.2 kB / 294.8 MB, free: 16.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002226/0.1712, allocations: 186.7 kB / 295 MB, free: 16.54 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003016/0.1715, allocations: 0.6599 MB / 295.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006596/0.1722, allocations: 1.037 MB / 296.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/0.1722, allocations: 4 kB / 296.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.001223/0.1734, allocations: 1.128 MB / 297.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.1734, allocations: 12 kB / 297.8 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.1734, allocations: 16 kB / 297.8 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004569/0.1739, allocations: 249.7 kB / 298.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007251/0.1746, allocations: 403.4 kB / 298.5 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001913/0.1765, allocations: 3.626 MB / 302.1 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000651/0.1772, allocations: 70.97 kB / 302.1 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.459e-05/0.1773, allocations: 52 kB / 302.2 MB, free: 8.895 MB / 266.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.000454/0.1777, allocations: 220.3 kB / 302.4 MB, free: 8.668 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001962/0.1779, allocations: 163.7 kB / 302.6 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009646/0.1789, allocations: 0.8995 MB / 303.5 MB, free: 7.586 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/0.1789, allocations: 15.98 kB / 303.5 MB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1789, allocations: 8 kB / 303.5 MB, free: 7.562 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.1789, allocations: 7.922 kB / 303.5 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002803/0.1817, allocations: 2.694 MB / 306.2 MB, free: 5.098 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.1817, allocations: 7.938 kB / 306.2 MB, free: 5.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005139/0.1822, allocations: 248.2 kB / 306.5 MB, free: 4.848 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000307/0.1825, allocations: 230.7 kB / 306.7 MB, free: 4.621 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005631/0.1831, allocations: 327.2 kB / 307 MB, free: 4.293 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.249e-05/0.1831, allocations: 35.97 kB / 307 MB, free: 4.258 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002177/0.1853, allocations: 4.806 MB / 311.8 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.1853, allocations: 4 kB / 311.8 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.1868, allocations: 1.358 MB / 313.2 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/0.1869, allocations: 35.98 kB / 313.2 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004155/0.1873, allocations: 55.92 kB / 313.3 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.1875, allocations: 112.7 kB / 313.4 MB, free: 13.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.275e-05/0.1875, allocations: 37.41 kB / 313.4 MB, free: 13.56 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000499/0.188, allocations: 0.6138 MB / 314 MB, free: 13.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.188, allocations: 0 / 314 MB, free: 13.02 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001138/0.1891, allocations: 0.5351 MB / 314.6 MB, free: 12.48 MB / 282.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.0002911/0.1894, allocations: 202.6 kB / 314.8 MB, free: 12.28 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001207/0.1906, allocations: 1.147 MB / 315.9 MB, free: 11.14 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.341e-05/0.1907, allocations: 36.44 kB / 316 MB, free: 11.1 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007515/0.1914, allocations: 0.8447 MB / 316.8 MB, free: 10.24 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009407/0.1924, allocations: 0.5085 MB / 317.3 MB, free: 9.738 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01653/0.2089, allocations: 4.369 MB / 321.7 MB, free: 5.297 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005392/0.2094, allocations: 0.5796 MB / 322.3 MB, free: 4.688 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0007907/0.2102, allocations: 222.5 kB / 322.5 MB, free: 4.465 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006894/0.2109, allocations: 405.1 kB / 322.9 MB, free: 4.07 MB / 282.7 MB Notification: Performance of SimCode: time 1.814e-06/0.2109, allocations: 0 / 322.9 MB, free: 4.07 MB / 282.7 MB Notification: Performance of Templates: time 0.03583/0.2468, allocations: 27.85 MB / 350.7 MB, free: 8.629 MB / 314.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 -ignoreHideResult -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.442344102077186]