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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,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=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 100.3 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007992/0.0007993, allocations: 39.94 kB / 350 MB, free: 80 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2202/0.221, allocations: 49.44 MB / 399.5 MB, free: 33.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.005649/0.2267, allocations: 7.113 MB / 406.6 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002593/0.2293, allocations: 2.32 MB / 408.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004149/0.2297, allocations: 16 kB / 408.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000986/0.2307, allocations: 457.6 kB / 409.4 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006296/0.2314, allocations: 325.6 kB / 409.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002842/0.2317, allocations: 183.9 kB / 409.9 MB, free: 22.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007566/0.2324, allocations: 1.156 MB / 411 MB, free: 21.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004477/0.2329, allocations: 442.7 kB / 411.5 MB, free: 21.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003409/0.2333, allocations: 418.1 kB / 411.9 MB, free: 20.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003069/0.2336, allocations: 465.8 kB / 412.3 MB, free: 20.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.336e-05/0.2337, allocations: 72 kB / 412.4 MB, free: 20.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002143/0.2339, allocations: 112 kB / 412.5 MB, free: 20.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.169e-05/0.234, allocations: 183.1 kB / 412.7 MB, free: 20.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002899/0.2343, allocations: 0.5091 MB / 413.2 MB, free: 19.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007546/0.235, allocations: 1.366 MB / 414.6 MB, free: 18.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2351, allocations: 8 kB / 414.6 MB, free: 18.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2351, allocations: 3.984 kB / 414.6 MB, free: 18.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.2351, allocations: 0 / 414.6 MB, free: 18.23 MB / 298.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.001579/0.2367, allocations: 1.254 MB / 415.8 MB, free: 16.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.956e-05/0.2367, allocations: 8.031 kB / 415.8 MB, free: 16.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00041/0.2371, allocations: 135.7 kB / 416 MB, free: 16.78 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007332/0.2379, allocations: 0.6415 MB / 416.6 MB, free: 16.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.085e-05/0.2379, allocations: 62.38 kB / 416.7 MB, free: 16.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.246e-05/0.238, allocations: 80.38 kB / 416.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009927/0.239, allocations: 0.7754 MB / 417.5 MB, free: 15.15 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.665e-05/0.239, allocations: 15.84 kB / 417.5 MB, free: 15.13 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.815e-05/0.2391, allocations: 36 kB / 417.6 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.2391, allocations: 20 kB / 417.6 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008257/0.24, allocations: 0.5075 MB / 418.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002949/0.2429, allocations: 3.403 MB / 421.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004142/0.2434, allocations: 230.4 kB / 421.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.2436, allocations: 116.8 kB / 421.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.2436, allocations: 11.94 kB / 421.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.636e-05/0.2436, allocations: 30.56 kB / 421.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.833e-06/0.2436, allocations: 0 / 421.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001577/0.2452, allocations: 1.048 MB / 422.9 MB, free: 9.434 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/0.2453, allocations: 81.34 kB / 423 MB, free: 9.336 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006652/0.2459, allocations: 0.7271 MB / 423.7 MB, free: 8.602 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.246, allocations: 33.7 kB / 423.8 MB, free: 8.562 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.2462, allocations: 498.1 kB / 424.3 MB, free: 8.066 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.619e-05/0.2462, allocations: 102.5 kB / 424.4 MB, free: 7.965 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.2463, allocations: 118.2 kB / 424.5 MB, free: 7.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.452e-05/0.2464, allocations: 382.8 kB / 424.8 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.2466, allocations: 125.2 kB / 425 MB, free: 7.336 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003029/0.247, allocations: 418.2 kB / 425.4 MB, free: 6.789 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005608/0.2475, allocations: 0.5794 MB / 426 MB, free: 6.074 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.2475, allocations: 4 kB / 426 MB, free: 6.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008214/0.2484, allocations: 0.6068 MB / 426.6 MB, free: 5.453 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.2484, allocations: 8 kB / 426.6 MB, free: 5.445 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.2484, allocations: 12 kB / 426.6 MB, free: 5.434 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001275/0.2485, allocations: 33.31 kB / 426.6 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003724/0.2489, allocations: 143.8 kB / 426.8 MB, free: 5.258 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006322/0.2496, allocations: 1.288 MB / 428 MB, free: 3.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000381/0.25, allocations: 31.89 kB / 428.1 MB, free: 3.809 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.902e-05/0.25, allocations: 36.05 kB / 428.1 MB, free: 3.773 MB / 298.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.0002212/0.2502, allocations: 245.4 kB / 428.4 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.747e-05/0.2503, allocations: 71.16 kB / 428.4 MB, free: 3.453 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005293/0.2508, allocations: 325.7 kB / 428.7 MB, free: 3.121 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.2509, allocations: 4 kB / 428.7 MB, free: 3.117 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.2509, allocations: 3.938 kB / 428.7 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2509, allocations: 3.984 kB / 428.7 MB, free: 3.109 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001239/0.2521, allocations: 1.102 MB / 429.9 MB, free: 1.926 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2521, allocations: 4 kB / 429.9 MB, free: 1.922 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.2524, allocations: 60.12 kB / 429.9 MB, free: 1.863 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.981e-05/0.2525, allocations: 24.84 kB / 429.9 MB, free: 1.836 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.2525, allocations: 8 kB / 429.9 MB, free: 1.828 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005125/0.253, allocations: 1.272 MB / 431.2 MB, free: 432 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.253, allocations: 7.969 kB / 431.2 MB, free: 424 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003973/0.257, allocations: 3.842 MB / 435.1 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001916/0.2572, allocations: 180.1 kB / 435.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.992e-05/0.2573, allocations: 8 kB / 435.3 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003024/0.2576, allocations: 23.91 kB / 435.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.078e-05/0.2577, allocations: 28 kB / 435.3 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.2577, allocations: 16 kB / 435.3 MB, free: 11.99 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005963/0.2583, allocations: 0.4991 MB / 435.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2583, allocations: 0 / 435.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007419/0.2591, allocations: 232 kB / 436 MB, free: 11.27 MB / 314.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.0001854/0.2593, allocations: 127 kB / 436.2 MB, free: 11.14 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007778/0.26, allocations: 452.1 kB / 436.6 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2601, allocations: 0 / 436.6 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003481/0.2604, allocations: 236.8 kB / 436.8 MB, free: 10.44 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009164/0.2613, allocations: 181.1 kB / 437 MB, free: 10.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0024/0.2637, allocations: 2.085 MB / 439.1 MB, free: 8.105 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004569/0.2642, allocations: 0.9492 MB / 440.1 MB, free: 7.129 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003307/0.2646, allocations: 94.02 kB / 440.1 MB, free: 7.035 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.2647, allocations: 47.44 kB / 440.2 MB, free: 6.988 MB / 314.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2647, allocations: 0 / 440.2 MB, free: 6.988 MB / 314.7 MB Notification: Performance of Templates: time 0.01425/0.2789, allocations: 8.296 MB / 448.5 MB, free: 14.8 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches