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.0008562/0.0008562, allocations: 78.28 kB / 21.42 MB, free: 3.074 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.0009005/0.0009005, allocations: 150.5 kB / 24.81 MB, free: 9.238 MB / 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.9963/0.9963, allocations: 173.4 MB / 201.4 MB, free: 9.223 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.743e-06/1.743e-06, allocations: 0 / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.534e-05/2.708e-05, allocations: 2.312 kB / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01004/0.01007, allocations: 11.03 MB / 279.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004897/0.01497, allocations: 3.78 MB / 283.2 MB, free: 7.312 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005792/0.01555, allocations: 79.5 kB / 283.3 MB, free: 7.234 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001218/0.01676, allocations: 0.8311 MB / 284.1 MB, free: 6.402 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001383/0.01815, allocations: 1.032 MB / 285.2 MB, free: 5.363 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007147/0.01886, allocations: 0.5225 MB / 285.7 MB, free: 4.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00224/0.0211, allocations: 3.318 MB / 289 MB, free: 1.504 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001597/0.0227, allocations: 1.426 MB / 290.4 MB, free: 12 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1341/0.1568, allocations: 2.403 MB / 292.8 MB, free: 16.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002667/0.1595, allocations: 1.6 MB / 294.4 MB, free: 16.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001038/0.1605, allocations: 375.3 kB / 294.8 MB, free: 16.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001301/0.1618, allocations: 0.5955 MB / 295.4 MB, free: 16.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008859/0.1627, allocations: 1.079 MB / 296.5 MB, free: 16.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002258/0.1649, allocations: 1.175 MB / 297.7 MB, free: 16.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004354/0.1693, allocations: 2.771 MB / 300.4 MB, free: 16.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1693, allocations: 4.875 kB / 300.4 MB, free: 16.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1693, allocations: 0 / 300.4 MB, free: 16.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001307/0.1694, allocations: 0 / 300.4 MB, free: 16.68 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.006135/0.1756, allocations: 3.508 MB / 303.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/0.1756, allocations: 10.2 kB / 304 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001286/0.1769, allocations: 0.6211 MB / 304.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002081/0.179, allocations: 1.601 MB / 306.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.1791, allocations: 190.5 kB / 306.4 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002532/0.1794, allocations: 248.1 kB / 306.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002351/0.1817, allocations: 1.872 MB / 308.5 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.823e-05/0.1818, allocations: 15.2 kB / 308.5 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001457/0.1819, allocations: 106.7 kB / 308.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.459e-05/0.182, allocations: 114.1 kB / 308.7 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001145/0.1831, allocations: 0.7231 MB / 309.4 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009821/0.193, allocations: 8.276 MB / 317.7 MB, free: 6.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007088/0.1937, allocations: 0.6457 MB / 318.4 MB, free: 5.703 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005099/0.1942, allocations: 457.4 kB / 318.8 MB, free: 5.262 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000143/0.1943, allocations: 56.97 kB / 318.9 MB, free: 5.207 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.1943, allocations: 54.38 kB / 318.9 MB, free: 5.141 MB / 266.7 MB Notification: Performance of pre-optimization done (n=115): time 2.806e-06/0.1944, allocations: 0 / 318.9 MB, free: 5.141 MB / 266.7 MB Notification: Performance of matching and sorting (n=134): time 0.004551/0.1989, allocations: 2.879 MB / 321.8 MB, free: 2.297 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.001e-05/0.1989, allocations: 64.72 kB / 321.8 MB, free: 2.223 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.2, allocations: 1.428 MB / 323.3 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.287e-05/0.2, allocations: 48.36 kB / 323.3 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000591/0.2006, allocations: 1.385 MB / 324.7 MB, free: 15.61 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003301/0.2009, allocations: 0.4908 MB / 325.2 MB, free: 15.15 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003298/0.2013, allocations: 312.3 kB / 325.5 MB, free: 14.87 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.2014, allocations: 483.6 kB / 326 MB, free: 14.39 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002968/0.2017, allocations: 195.8 kB / 326.2 MB, free: 14.2 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006169/0.2023, allocations: 0.8944 MB / 327.1 MB, free: 13.05 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/0.2033, allocations: 1.237 MB / 328.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/0.2034, allocations: 4 kB / 328.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.001829/0.2052, allocations: 1.393 MB / 329.7 MB, free: 10.32 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.2052, allocations: 12 kB / 329.7 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.97e-05/0.2052, allocations: 16 kB / 329.7 MB, free: 10.29 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005445/0.2058, allocations: 255.5 kB / 330 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007157/0.2065, allocations: 346.3 kB / 330.3 MB, free: 9.723 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002966/0.2095, allocations: 4.8 MB / 335.1 MB, free: 4.781 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.2106, allocations: 59.94 kB / 335.2 MB, free: 4.723 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.449e-05/0.2106, allocations: 63.98 kB / 335.2 MB, free: 4.66 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.0007772/0.2114, allocations: 250.5 kB / 335.5 MB, free: 4.426 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003343/0.2118, allocations: 245.8 kB / 335.7 MB, free: 4.188 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001451/0.2132, allocations: 1.063 MB / 336.8 MB, free: 3.121 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.256e-05/0.2132, allocations: 23.92 kB / 336.8 MB, free: 3.098 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2132, allocations: 4 kB / 336.8 MB, free: 3.094 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.2132, allocations: 3.984 kB / 336.8 MB, free: 3.09 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004404/0.2177, allocations: 3.242 MB / 340.1 MB, free: 100 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.2177, allocations: 4 kB / 340.1 MB, free: 96 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005201/0.2182, allocations: 209.8 kB / 340.3 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000647/0.2188, allocations: 294.1 kB / 340.6 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.662e-05/0.2189, allocations: 35.98 kB / 340.6 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003575/0.2225, allocations: 6.492 MB / 347.1 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.2225, allocations: 7.281 kB / 347.1 MB, free: 8.828 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002159/0.2247, allocations: 1.601 MB / 348.7 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006424/0.2253, allocations: 310.1 kB / 349 MB, free: 6.867 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001446/0.2254, allocations: 36.06 kB / 349 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004907/0.2259, allocations: 63.95 kB / 349.1 MB, free: 6.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/0.2261, allocations: 108.5 kB / 349.2 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-05/0.2262, allocations: 31.98 kB / 349.2 MB, free: 6.637 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008465/0.227, allocations: 0.7913 MB / 350 MB, free: 5.918 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.227, allocations: 0 / 350 MB, free: 5.918 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00168/0.2287, allocations: 0.5311 MB / 350.5 MB, free: 5.387 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.0003803/0.2291, allocations: 228.2 kB / 350.8 MB, free: 5.168 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.2306, allocations: 1.316 MB / 352.1 MB, free: 3.898 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.2306, allocations: 4 kB / 352.1 MB, free: 3.895 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000913/0.2316, allocations: 1.054 MB / 353.1 MB, free: 2.832 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.2327, allocations: 382.3 kB / 353.5 MB, free: 2.465 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006112/0.2388, allocations: 4.36 MB / 357.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000587/0.2394, allocations: 0.6528 MB / 358.5 MB, free: 13.35 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007058/0.2401, allocations: 234.4 kB / 358.8 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007272/0.2408, allocations: 458 kB / 359.2 MB, free: 12.66 MB / 314.7 MB Notification: Performance of SimCode: time 1.392e-06/0.2408, allocations: 4 kB / 359.2 MB, free: 12.66 MB / 314.7 MB Notification: Performance of Templates: time 0.03842/0.2792, allocations: 27.03 MB / 386.2 MB, free: 2.086 MB / 330.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.672725745011121]