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.001068/0.001068, allocations: 80.06 kB / 21.18 MB, free: 3.383 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.0009231/0.0009231, allocations: 145.1 kB / 24.54 MB, free: 28 kB / 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.92/0.92, allocations: 173.3 MB / 201.1 MB, free: 8.465 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 2.504e-06/2.504e-06, allocations: 0 / 268 MB, free: 6.125 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.814e-05/3.065e-05, allocations: 2.312 kB / 268 MB, free: 6.121 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.006395/0.006426, allocations: 7.132 MB / 275.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003193/0.009619, allocations: 2.306 MB / 277.4 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003619/0.009981, allocations: 19.94 kB / 277.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000889/0.01087, allocations: 472.9 kB / 277.9 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005772/0.01145, allocations: 440.6 kB / 278.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002917/0.01174, allocations: 211.7 kB / 278.6 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009571/0.0127, allocations: 1.251 MB / 279.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003978/0.01309, allocations: 320.5 kB / 280.1 MB, free: 9.922 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006817/0.01378, allocations: 0.7053 MB / 280.8 MB, free: 9.215 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003882/0.01416, allocations: 386.9 kB / 281.2 MB, free: 8.836 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.01427, allocations: 112 kB / 281.3 MB, free: 8.727 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002028/0.01447, allocations: 148 kB / 281.5 MB, free: 8.582 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.0146, allocations: 239.1 kB / 281.7 MB, free: 8.348 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003179/0.01491, allocations: 383.1 kB / 282.1 MB, free: 7.973 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007933/0.01571, allocations: 0.7744 MB / 282.8 MB, free: 7.195 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.01571, allocations: 4 kB / 282.8 MB, free: 7.191 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.01571, allocations: 0 / 282.8 MB, free: 7.191 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.517e-05/0.01573, allocations: 0 / 282.8 MB, free: 7.191 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.001333/0.01706, allocations: 1.301 MB / 284.1 MB, free: 5.852 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.01709, allocations: 12.02 kB / 284.2 MB, free: 5.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003283/0.01742, allocations: 208.2 kB / 284.4 MB, free: 5.637 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000679/0.0181, allocations: 0.5949 MB / 285 MB, free: 5.008 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.434e-05/0.01813, allocations: 62.31 kB / 285 MB, free: 4.949 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.282e-05/0.01821, allocations: 84.33 kB / 285.1 MB, free: 4.867 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007414/0.01896, allocations: 0.6569 MB / 285.8 MB, free: 4.156 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/0.01898, allocations: 4.188 kB / 285.8 MB, free: 4.152 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.493e-05/0.01902, allocations: 39.94 kB / 285.8 MB, free: 4.113 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.01904, allocations: 20 kB / 285.8 MB, free: 4.094 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004443/0.01949, allocations: 287.7 kB / 286.1 MB, free: 3.816 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002535/0.02202, allocations: 3.247 MB / 289.3 MB, free: 380 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002559/0.02228, allocations: 155 kB / 289.5 MB, free: 212 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.395e-05/0.02236, allocations: 63.66 kB / 289.6 MB, free: 144 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.02238, allocations: 4 kB / 289.6 MB, free: 140 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.02241, allocations: 41.39 kB / 289.6 MB, free: 88 kB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.413e-06/0.02241, allocations: 0 / 289.6 MB, free: 88 kB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.1168/0.1392, allocations: 0.7009 MB / 290.3 MB, free: 24.04 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/0.1393, allocations: 84.06 kB / 290.4 MB, free: 23.94 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006893/0.14, allocations: 0.6809 MB / 291.1 MB, free: 23.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.14, allocations: 33.34 kB / 291.1 MB, free: 23.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002463/0.1402, allocations: 0.5697 MB / 291.7 MB, free: 23.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.139e-05/0.1403, allocations: 108.1 kB / 291.8 MB, free: 23.38 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.1404, allocations: 119.6 kB / 291.9 MB, free: 23.34 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1405, allocations: 0.554 MB / 292.4 MB, free: 22.85 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.1406, allocations: 62.28 kB / 292.5 MB, free: 22.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/0.1409, allocations: 0.4931 MB / 293 MB, free: 22.28 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003853/0.1413, allocations: 0.5753 MB / 293.6 MB, free: 21.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.567e-06/0.1413, allocations: 4 kB / 293.6 MB, free: 21.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006371/0.1419, allocations: 0.5167 MB / 294.1 MB, free: 21.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.1419, allocations: 10.27 kB / 294.1 MB, free: 21.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.1419, allocations: 11.94 kB / 294.1 MB, free: 21.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001427/0.1421, allocations: 38.06 kB / 294.2 MB, free: 21.67 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002798/0.1424, allocations: 134.8 kB / 294.3 MB, free: 21.67 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006063/0.143, allocations: 1.748 MB / 296 MB, free: 19.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002499/0.1432, allocations: 30.23 kB / 296.1 MB, free: 19.94 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.302e-05/0.1433, allocations: 29.5 kB / 296.1 MB, free: 19.94 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.0001577/0.1434, allocations: 202.6 kB / 296.3 MB, free: 19.78 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.002e-05/0.1435, allocations: 81.3 kB / 296.4 MB, free: 19.74 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003095/0.1438, allocations: 233.9 kB / 296.6 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1438, allocations: 4.094 kB / 296.6 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.1438, allocations: 0 / 296.6 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1438, allocations: 1.359 kB / 296.6 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009652/0.1448, allocations: 0.916 MB / 297.5 MB, free: 19.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1448, allocations: 1.25 kB / 297.5 MB, free: 19.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.1449, allocations: 58.06 kB / 297.6 MB, free: 19.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.614e-05/0.145, allocations: 22.3 kB / 297.6 MB, free: 19.26 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.145, allocations: 7.625 kB / 297.6 MB, free: 19.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004479/0.1455, allocations: 1.738 MB / 299.3 MB, free: 17.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1455, allocations: 4.562 kB / 299.3 MB, free: 17.54 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004149/0.1459, allocations: 499.4 kB / 299.8 MB, free: 17.21 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.146, allocations: 88.23 kB / 299.9 MB, free: 17.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.079e-05/0.1461, allocations: 8.031 kB / 299.9 MB, free: 17.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.1462, allocations: 15.55 kB / 299.9 MB, free: 17.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.13e-05/0.1463, allocations: 27.19 kB / 300 MB, free: 17.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.1463, allocations: 15.31 kB / 300 MB, free: 17.17 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003946/0.1467, allocations: 434.6 kB / 300.4 MB, free: 17.03 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1467, allocations: 1.156 kB / 300.4 MB, free: 17.03 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004749/0.1471, allocations: 157.4 kB / 300.6 MB, free: 17.03 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.0001569/0.1473, allocations: 125.2 kB / 300.7 MB, free: 16.94 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004784/0.1478, allocations: 434.6 kB / 301.1 MB, free: 16.75 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.1478, allocations: 1.156 kB / 301.1 MB, free: 16.75 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001568/0.1479, allocations: 257.6 kB / 301.4 MB, free: 16.56 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005588/0.1485, allocations: 173.6 kB / 301.5 MB, free: 16.55 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.1504, allocations: 1.335 MB / 302.9 MB, free: 15.78 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/0.1505, allocations: 144.1 kB / 303 MB, free: 15.7 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002092/0.1507, allocations: 82.73 kB / 303.1 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.781e-05/0.1508, allocations: 48.72 kB / 303.1 MB, free: 15.68 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.1508, allocations: 3.562 kB / 303.1 MB, free: 15.68 MB / 266.7 MB Notification: Performance of Templates: time 0.01178/0.1626, allocations: 7.996 MB / 311.1 MB, free: 13.41 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: 3.0562975741922855]