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.0009647/0.0009647, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.004207/0.004207, allocations: 163.9 kB / 25.61 MB, free: 8.582 MB / 18.57 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 0.8725/0.8725, allocations: 177.1 MB / 206.1 MB, free: 4.473 MB / 186.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.103e-06/1.103e-06, allocations: 0 / 274.2 MB, free: 4.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.131e-05/1.241e-05, allocations: 2.312 kB / 274.2 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.009228/0.00924, allocations: 11.07 MB / 285.3 MB, free: 9.281 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004229/0.01347, allocations: 3.853 MB / 289.1 MB, free: 5.422 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005662/0.01404, allocations: 71.56 kB / 289.2 MB, free: 5.352 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.01519, allocations: 0.8311 MB / 290 MB, free: 4.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001257/0.01644, allocations: 1.04 MB / 291.1 MB, free: 3.473 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005389/0.01698, allocations: 0.5186 MB / 291.6 MB, free: 2.953 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001818/0.0188, allocations: 3.346 MB / 294.9 MB, free: 15.59 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00117/0.01997, allocations: 1.422 MB / 296.4 MB, free: 14.1 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001646/0.02162, allocations: 2.421 MB / 298.8 MB, free: 11.68 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001182/0.0228, allocations: 1.605 MB / 300.4 MB, free: 10.07 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002883/0.02309, allocations: 376 kB / 300.8 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005832/0.02367, allocations: 0.6009 MB / 301.4 MB, free: 9.098 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000587/0.02426, allocations: 1.071 MB / 302.4 MB, free: 8.023 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007582/0.02501, allocations: 1.173 MB / 303.6 MB, free: 6.848 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001911/0.02693, allocations: 2.78 MB / 306.4 MB, free: 4.059 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.02693, allocations: 4 kB / 306.4 MB, free: 4.055 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.02693, allocations: 4 kB / 306.4 MB, free: 4.051 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.881e-05/0.02695, allocations: 0 / 306.4 MB, free: 4.051 MB / 282.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.003243/0.03019, allocations: 3.514 MB / 309.9 MB, free: 488 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.759e-05/0.03022, allocations: 8.031 kB / 309.9 MB, free: 480 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009687/0.03119, allocations: 0.6588 MB / 310.6 MB, free: 15.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001476/0.03266, allocations: 1.61 MB / 312.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.495e-05/0.03276, allocations: 189.4 kB / 312.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002196/0.03298, allocations: 256.3 kB / 312.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001846/0.03482, allocations: 1.876 MB / 314.5 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.401e-05/0.03487, allocations: 15.83 kB / 314.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001407/0.03501, allocations: 104 kB / 314.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.876e-05/0.0351, allocations: 112.9 kB / 314.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009921/0.03609, allocations: 0.7244 MB / 315.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007707/0.0438, allocations: 8.285 MB / 323.7 MB, free: 2.109 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007344/0.04453, allocations: 0.6334 MB / 324.4 MB, free: 1.473 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008225/0.04535, allocations: 462.2 kB / 324.8 MB, free: 1.023 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001271/0.04548, allocations: 56.97 kB / 324.9 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.04551, allocations: 50.39 kB / 324.9 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of pre-optimization done (n=115): time 2.665e-06/0.04551, allocations: 0 / 324.9 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of matching and sorting (n=134): time 0.004375/0.04989, allocations: 2.891 MB / 327.8 MB, free: 13.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.04992, allocations: 72.66 kB / 327.9 MB, free: 13.9 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.05097, allocations: 1.435 MB / 329.3 MB, free: 12.45 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.258e-05/0.05104, allocations: 45.7 kB / 329.4 MB, free: 12.39 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006249/0.05166, allocations: 1.384 MB / 330.7 MB, free: 10.99 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002507/0.05191, allocations: 0.4958 MB / 331.2 MB, free: 10.49 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002958/0.05221, allocations: 317 kB / 331.5 MB, free: 10.17 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003406/0.05255, allocations: 476.8 kB / 332 MB, free: 9.703 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002563/0.0528, allocations: 187.8 kB / 332.2 MB, free: 9.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005381/0.05334, allocations: 0.896 MB / 333.1 MB, free: 8.328 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008955/0.05424, allocations: 1.241 MB / 334.3 MB, free: 6.793 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.05424, allocations: 4 kB / 334.3 MB, free: 6.789 MB / 314.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.001529/0.05577, allocations: 1.394 MB / 335.7 MB, free: 5.375 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.05579, allocations: 12 kB / 335.7 MB, free: 5.363 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.0558, allocations: 16 kB / 335.8 MB, free: 5.348 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004787/0.05628, allocations: 255 kB / 336 MB, free: 5.086 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006782/0.05696, allocations: 347.4 kB / 336.3 MB, free: 4.746 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002759/0.05972, allocations: 4.794 MB / 341.1 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005239/0.06024, allocations: 63.94 kB / 341.2 MB, free: 15.67 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.061e-05/0.06032, allocations: 59.98 kB / 341.3 MB, free: 15.61 MB / 330.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.0003463/0.06067, allocations: 252.2 kB / 341.5 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002421/0.06091, allocations: 250.7 kB / 341.7 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00126/0.06217, allocations: 1.066 MB / 342.8 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695e-05/0.06219, allocations: 15.94 kB / 342.8 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.06219, allocations: 4 kB / 342.8 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.0622, allocations: 7.969 kB / 342.8 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003621/0.06582, allocations: 3.238 MB / 346.1 MB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.06583, allocations: 7.938 kB / 346.1 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004831/0.06631, allocations: 207.7 kB / 346.3 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005367/0.06685, allocations: 289.1 kB / 346.6 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.774e-05/0.06691, allocations: 35.98 kB / 346.6 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003266/0.07017, allocations: 6.496 MB / 353.1 MB, free: 3.223 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.07017, allocations: 4 kB / 353.1 MB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001662/0.07184, allocations: 1.611 MB / 354.7 MB, free: 1.5 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003718/0.07221, allocations: 306.5 kB / 355 MB, free: 1.199 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001423/0.07235, allocations: 35.98 kB / 355.1 MB, free: 1.164 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004559/0.07281, allocations: 51.97 kB / 355.1 MB, free: 1.113 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.07295, allocations: 116.7 kB / 355.2 MB, free: 1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.337e-05/0.073, allocations: 35.98 kB / 355.3 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000586/0.07359, allocations: 0.794 MB / 356 MB, free: 180 kB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.07359, allocations: 0 / 356 MB, free: 180 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.112/0.1856, allocations: 0.5307 MB / 356.6 MB, free: 75.99 MB / 330.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.0003699/0.186, allocations: 213.3 kB / 356.8 MB, free: 75.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001644/0.1876, allocations: 1.312 MB / 358.1 MB, free: 75.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.1877, allocations: 1.438 kB / 358.1 MB, free: 75.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008768/0.1885, allocations: 1.061 MB / 359.2 MB, free: 74.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.1897, allocations: 385.3 kB / 359.5 MB, free: 74.96 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004865/0.1945, allocations: 4.378 MB / 363.9 MB, free: 73.06 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004621/0.195, allocations: 0.6513 MB / 364.6 MB, free: 72.95 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000565/0.1956, allocations: 234.2 kB / 364.8 MB, free: 72.88 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006414/0.1962, allocations: 463.6 kB / 365.2 MB, free: 72.82 MB / 330.7 MB Notification: Performance of SimCode: time 6.01e-07/0.1962, allocations: 0 / 365.2 MB, free: 72.82 MB / 330.7 MB Notification: Performance of Templates: time 0.02858/0.2248, allocations: 27.62 MB / 392.9 MB, free: 52 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.56765248067677]