Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.0009777/0.0009777, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001075/0.001075, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.9301/0.9301, allocations: 173.4 MB / 202.3 MB, free: 8.277 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.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 269.2 MB, free: 9.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.479e-05/2.613e-05, allocations: 5.266 kB / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.006429/0.006455, allocations: 6.96 MB / 276.2 MB, free: 2.789 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0035/0.009956, allocations: 2.288 MB / 278.5 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006198/0.01058, allocations: 19.94 kB / 278.5 MB, free: 496 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.01177, allocations: 488.8 kB / 279 MB, free: 4 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008413/0.01261, allocations: 432.6 kB / 279.4 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.01294, allocations: 207.7 kB / 279.6 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001138/0.01408, allocations: 1.245 MB / 280.8 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005276/0.01461, allocations: 316.5 kB / 281.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001132/0.01574, allocations: 0.717 MB / 281.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004515/0.01619, allocations: 386.9 kB / 282.2 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.0163, allocations: 115.9 kB / 282.3 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000211/0.01651, allocations: 144 kB / 282.5 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.01663, allocations: 235.1 kB / 282.7 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002655/0.01689, allocations: 379.1 kB / 283.1 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008362/0.01773, allocations: 0.7627 MB / 283.8 MB, free: 11.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.01773, allocations: 0 / 283.8 MB, free: 11.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.01773, allocations: 0 / 283.8 MB, free: 11.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.01775, allocations: 0 / 283.8 MB, free: 11.07 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.00128/0.01903, allocations: 1.305 MB / 285.1 MB, free: 9.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.01907, allocations: 11.97 kB / 285.2 MB, free: 9.719 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003338/0.0194, allocations: 216.2 kB / 285.4 MB, free: 9.508 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005697/0.01997, allocations: 0.5676 MB / 285.9 MB, free: 8.906 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.834e-05/0.02001, allocations: 70.25 kB / 286 MB, free: 8.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.362e-05/0.02009, allocations: 80.38 kB / 286.1 MB, free: 8.762 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005888/0.02068, allocations: 0.6139 MB / 286.7 MB, free: 8.094 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.0207, allocations: 8.078 kB / 286.7 MB, free: 8.086 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.243e-05/0.02075, allocations: 35.94 kB / 286.7 MB, free: 8.051 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.02076, allocations: 20 kB / 286.8 MB, free: 8.031 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002731/0.02103, allocations: 225.7 kB / 287 MB, free: 7.812 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002673/0.02371, allocations: 3.27 MB / 290.3 MB, free: 4.344 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002166/0.02392, allocations: 150.1 kB / 290.4 MB, free: 4.188 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.694e-05/0.02398, allocations: 47.66 kB / 290.4 MB, free: 4.137 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.024, allocations: 4 kB / 290.4 MB, free: 4.133 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.02402, allocations: 41.39 kB / 290.5 MB, free: 4.082 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.563e-06/0.02403, allocations: 3.938 kB / 290.5 MB, free: 4.078 MB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008002/0.02483, allocations: 0.5678 MB / 291.1 MB, free: 3.473 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/0.02486, allocations: 81.28 kB / 291.1 MB, free: 3.375 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004584/0.02531, allocations: 0.6707 MB / 291.8 MB, free: 2.691 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.02533, allocations: 37.7 kB / 291.8 MB, free: 2.648 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000266/0.0256, allocations: 0.5722 MB / 292.4 MB, free: 2.07 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.519e-05/0.02565, allocations: 115 kB / 292.5 MB, free: 1.957 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.02576, allocations: 119.9 kB / 292.6 MB, free: 1.832 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.02591, allocations: 0.5585 MB / 293.2 MB, free: 1.262 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.243e-05/0.02597, allocations: 45.27 kB / 293.3 MB, free: 1.219 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002366/0.02621, allocations: 0.4913 MB / 293.7 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003536/0.02656, allocations: 0.5576 MB / 294.3 MB, free: 15.79 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.02657, allocations: 8 kB / 294.3 MB, free: 15.79 MB / 282.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0004645/0.02703, allocations: 489 kB / 294.8 MB, free: 15.3 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.02705, allocations: 8 kB / 294.8 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.02706, allocations: 15.97 kB / 294.8 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000105/0.02717, allocations: 39.67 kB / 294.8 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002367/0.0274, allocations: 135.8 kB / 295 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009691/0.02837, allocations: 1.721 MB / 296.7 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002177/0.02859, allocations: 32.11 kB / 296.7 MB, free: 13.23 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.02861, allocations: 24 kB / 296.8 MB, free: 13.21 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.02875, allocations: 204.2 kB / 297 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.047e-05/0.02882, allocations: 83.56 kB / 297 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002401/0.02907, allocations: 223.7 kB / 297.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.02907, allocations: 0 / 297.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-06/0.02907, allocations: 0 / 297.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.02907, allocations: 4 kB / 297.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007062/0.02978, allocations: 0.7861 MB / 298 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.02978, allocations: 4 kB / 298 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.02992, allocations: 51.91 kB / 298.1 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.059e-05/0.02998, allocations: 23.67 kB / 298.1 MB, free: 11.74 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.03, allocations: 12.16 kB / 298.1 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006066/0.0306, allocations: 1.713 MB / 299.8 MB, free: 9.895 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.0306, allocations: 4 kB / 299.9 MB, free: 9.891 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003329/0.03094, allocations: 481.8 kB / 300.3 MB, free: 9.367 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.03105, allocations: 87.53 kB / 300.4 MB, free: 9.281 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.288e-05/0.0311, allocations: 16.11 kB / 300.4 MB, free: 9.266 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.03124, allocations: 12 kB / 300.4 MB, free: 9.254 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.38e-05/0.03129, allocations: 31.89 kB / 300.5 MB, free: 9.223 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.0313, allocations: 8 kB / 300.5 MB, free: 9.215 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000245/0.03154, allocations: 398.8 kB / 300.9 MB, free: 8.832 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03154, allocations: 0 / 300.9 MB, free: 8.832 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004136/0.03196, allocations: 156 kB / 301 MB, free: 8.68 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * 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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,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.0001476/0.0321, allocations: 131.1 kB / 301.1 MB, free: 8.543 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003759/0.03248, allocations: 404 kB / 301.5 MB, free: 8.129 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.03248, allocations: 4 kB / 301.5 MB, free: 8.125 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001458/0.03263, allocations: 245.4 kB / 301.8 MB, free: 7.863 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005183/0.03315, allocations: 176 kB / 302 MB, free: 7.691 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001835/0.03498, allocations: 1.35 MB / 303.3 MB, free: 6.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.802e-05/0.03507, allocations: 142.1 kB / 303.4 MB, free: 6.109 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001797/0.03525, allocations: 89.41 kB / 303.5 MB, free: 6.02 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002521/0.0355, allocations: 226.1 kB / 303.8 MB, free: 5.797 MB / 282.7 MB Notification: Performance of SimCode: time 8.22e-07/0.0355, allocations: 0 / 303.8 MB, free: 5.797 MB / 282.7 MB Notification: Performance of Templates: time 0.012/0.0475, allocations: 8.836 MB / 312.6 MB, free: 13.15 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.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: 2.839802914764732]