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.0009424/0.0009424, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009333/0.0009333, allocations: 141.7 kB / 24.89 MB, free: 8.777 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.8853/0.8853, allocations: 173.4 MB / 201.5 MB, free: 8.754 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.173e-06/1.173e-06, allocations: 0 / 268.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.036e-05/1.153e-05, allocations: 2.312 kB / 268.5 MB, free: 6.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.005092/0.005103, allocations: 6.98 MB / 275.5 MB, free: 15 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002149/0.007252, allocations: 2.352 MB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002425/0.007495, allocations: 23.94 kB / 277.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007446/0.008239, allocations: 496.8 kB / 278.3 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004467/0.008686, allocations: 432.6 kB / 278.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000218/0.008904, allocations: 203.7 kB / 278.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007289/0.009633, allocations: 1.248 MB / 280.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003297/0.009963, allocations: 336.4 kB / 280.5 MB, free: 9.891 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004981/0.01046, allocations: 0.7093 MB / 281.2 MB, free: 9.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003202/0.01078, allocations: 382.8 kB / 281.6 MB, free: 8.805 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.659e-05/0.01087, allocations: 112 kB / 281.7 MB, free: 8.695 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001529/0.01102, allocations: 148 kB / 281.9 MB, free: 8.551 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.01113, allocations: 235.1 kB / 282.1 MB, free: 8.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002246/0.01136, allocations: 379.1 kB / 282.5 MB, free: 7.949 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000589/0.01195, allocations: 0.7705 MB / 283.2 MB, free: 7.176 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.784e-06/0.01195, allocations: 0 / 283.2 MB, free: 7.176 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.4e-07/0.01195, allocations: 0 / 283.2 MB, free: 7.176 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.01196, allocations: 8 kB / 283.2 MB, free: 7.168 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.0009835/0.01294, allocations: 1.145 MB / 284.4 MB, free: 5.996 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.507e-05/0.01297, allocations: 8.031 kB / 284.4 MB, free: 5.988 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002631/0.01323, allocations: 180.8 kB / 284.6 MB, free: 5.812 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004811/0.01371, allocations: 478.6 kB / 285 MB, free: 5.312 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.01374, allocations: 62.38 kB / 285.1 MB, free: 5.254 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.439e-05/0.01381, allocations: 80.33 kB / 285.2 MB, free: 5.176 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004817/0.01429, allocations: 0.6151 MB / 285.8 MB, free: 4.516 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.01431, allocations: 4.188 kB / 285.8 MB, free: 4.512 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.35e-05/0.01434, allocations: 35.92 kB / 285.8 MB, free: 4.477 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.01435, allocations: 20 kB / 285.8 MB, free: 4.457 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002164/0.01457, allocations: 201.8 kB / 286 MB, free: 4.262 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001916/0.01648, allocations: 2.593 MB / 288.6 MB, free: 1.492 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001707/0.01665, allocations: 130.4 kB / 288.8 MB, free: 1.355 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.904e-05/0.0167, allocations: 44.84 kB / 288.8 MB, free: 1.309 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.01672, allocations: 4 kB / 288.8 MB, free: 1.305 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.01674, allocations: 42.55 kB / 288.8 MB, free: 1.254 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.302e-06/0.01674, allocations: 0 / 288.8 MB, free: 1.254 MB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.0006803/0.01742, allocations: 0.5312 MB / 289.4 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.907e-05/0.01745, allocations: 81.34 kB / 289.5 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1023/0.1198, allocations: 0.5942 MB / 290.1 MB, free: 28.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.149e-05/0.1198, allocations: 28.02 kB / 290.1 MB, free: 28.49 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002725/0.1201, allocations: 455.9 kB / 290.5 MB, free: 28.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.965e-05/0.1202, allocations: 112.7 kB / 290.6 MB, free: 28.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.1203, allocations: 112.9 kB / 290.7 MB, free: 28.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.925e-05/0.1204, allocations: 380.8 kB / 291.1 MB, free: 27.96 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.171e-05/0.1205, allocations: 45.09 kB / 291.2 MB, free: 27.96 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.1207, allocations: 372.7 kB / 291.5 MB, free: 27.56 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/0.121, allocations: 452.5 kB / 292 MB, free: 27.22 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.121, allocations: 2.375 kB / 292 MB, free: 27.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006613/0.1217, allocations: 400.5 kB / 292.4 MB, free: 27.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.1217, allocations: 8.625 kB / 292.4 MB, free: 27.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.1217, allocations: 10.19 kB / 292.4 MB, free: 27.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001322/0.1219, allocations: 39.91 kB / 292.4 MB, free: 27.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003453/0.1222, allocations: 136.3 kB / 292.5 MB, free: 27.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005744/0.1228, allocations: 1.168 MB / 293.7 MB, free: 26.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/0.1231, allocations: 32.03 kB / 293.7 MB, free: 26.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.525e-05/0.1232, allocations: 24.88 kB / 293.8 MB, free: 26.05 MB / 266.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.0001544/0.1233, allocations: 155.6 kB / 293.9 MB, free: 25.93 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.004e-05/0.1234, allocations: 51.97 kB / 294 MB, free: 25.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002724/0.1237, allocations: 193.2 kB / 294.2 MB, free: 25.87 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1237, allocations: 5.641 kB / 294.2 MB, free: 25.87 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1237, allocations: 1.125 kB / 294.2 MB, free: 25.87 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1237, allocations: 1.969 kB / 294.2 MB, free: 25.87 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008005/0.1245, allocations: 0.592 MB / 294.8 MB, free: 25.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.1245, allocations: 3.016 kB / 294.8 MB, free: 25.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001806/0.1247, allocations: 55.83 kB / 294.8 MB, free: 25.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.728e-05/0.1247, allocations: 18.81 kB / 294.8 MB, free: 25.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.1248, allocations: 7.297 kB / 294.8 MB, free: 25.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004155/0.1252, allocations: 1.166 MB / 296 MB, free: 24.46 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1252, allocations: 2.188 kB / 296 MB, free: 24.46 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003451/0.1255, allocations: 354.3 kB / 296.4 MB, free: 24.26 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001364/0.1257, allocations: 59.05 kB / 296.4 MB, free: 24.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.039e-05/0.1257, allocations: 7.719 kB / 296.4 MB, free: 24.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.1259, allocations: 18.11 kB / 296.4 MB, free: 24.22 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.529e-05/0.126, allocations: 35.19 kB / 296.5 MB, free: 24.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.126, allocations: 5.719 kB / 296.5 MB, free: 24.22 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003213/0.1263, allocations: 279 kB / 296.8 MB, free: 24.19 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1263, allocations: 0 / 296.8 MB, free: 24.19 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006202/0.1269, allocations: 160 kB / 296.9 MB, free: 24.19 MB / 266.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.0001475/0.1271, allocations: 111 kB / 297 MB, free: 24.12 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003506/0.1274, allocations: 342.4 kB / 297.4 MB, free: 23.99 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-05/0.1274, allocations: 10.19 kB / 297.4 MB, free: 23.99 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.1275, allocations: 184.3 kB / 297.5 MB, free: 23.87 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000438/0.128, allocations: 178.8 kB / 297.7 MB, free: 23.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/0.1295, allocations: 1.294 MB / 299 MB, free: 23.14 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.86e-05/0.1296, allocations: 142.7 kB / 299.2 MB, free: 23.06 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002005/0.1298, allocations: 90.03 kB / 299.2 MB, free: 23.04 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002474/0.13, allocations: 192.9 kB / 299.4 MB, free: 22.99 MB / 266.7 MB Notification: Performance of SimCode: time 1.012e-06/0.13, allocations: 0 / 299.4 MB, free: 22.99 MB / 266.7 MB Notification: Performance of Templates: time 0.01106/0.1411, allocations: 8.571 MB / 308 MB, free: 20.4 MB / 266.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.7284677526913583]