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) 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) 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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 107.5 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001863/0.001863, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.042/2.042, allocations: 222.9 MB / 241.8 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 48.3 kB / 300.6 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.1572, allocations: 49.44 MB / 350.1 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01419/0.1715, allocations: 7.117 MB / 357.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007295/0.1789, allocations: 2.329 MB / 359.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001635/0.1806, allocations: 23.94 kB / 359.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002884/0.1836, allocations: 445.7 kB / 360 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002364/0.186, allocations: 325.7 kB / 360.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009804/0.187, allocations: 183.8 kB / 360.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002496/0.1895, allocations: 1.133 MB / 361.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001254/0.1908, allocations: 438.7 kB / 362 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.192, allocations: 414 kB / 362.4 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00112/0.1931, allocations: 473.8 kB / 362.9 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003528/0.1935, allocations: 68 kB / 363 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007368/0.1942, allocations: 108 kB / 363.1 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003897/0.1946, allocations: 191.1 kB / 363.3 MB, free: 7.332 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001355/0.196, allocations: 0.5052 MB / 363.8 MB, free: 6.824 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001875/0.1979, allocations: 1.146 MB / 364.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.1979, allocations: 3.938 kB / 364.9 MB, free: 5.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1979, allocations: 0 / 364.9 MB, free: 5.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.137e-05/0.198, allocations: 0 / 364.9 MB, free: 5.672 MB / 302.1 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.004593/0.2026, allocations: 1.247 MB / 366.2 MB, free: 4.375 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.477e-05/0.2027, allocations: 15.97 kB / 366.2 MB, free: 4.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001097/0.2038, allocations: 147.6 kB / 366.3 MB, free: 4.215 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002017/0.2059, allocations: 0.6377 MB / 367 MB, free: 3.531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.565e-05/0.206, allocations: 62.38 kB / 367 MB, free: 3.473 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002386/0.2062, allocations: 80.28 kB / 367.1 MB, free: 3.395 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002589/0.2088, allocations: 0.7832 MB / 367.9 MB, free: 2.578 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.003e-05/0.2089, allocations: 7.984 kB / 367.9 MB, free: 2.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/0.2091, allocations: 28 kB / 367.9 MB, free: 2.543 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.803e-05/0.2091, allocations: 20 kB / 367.9 MB, free: 2.523 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00198/0.2111, allocations: 0.5231 MB / 368.5 MB, free: 2.004 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3401/0.5512, allocations: 3.387 MB / 371.8 MB, free: 23.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.5524, allocations: 228.4 kB / 372.1 MB, free: 23.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005116/0.5529, allocations: 118.6 kB / 372.2 MB, free: 23.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.73e-05/0.553, allocations: 7.25 kB / 372.2 MB, free: 23.51 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.781e-05/0.5531, allocations: 37.58 kB / 372.2 MB, free: 23.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 4.248e-06/0.5531, allocations: 0 / 372.2 MB, free: 23.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.004122/0.5572, allocations: 1.036 MB / 373.3 MB, free: 23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.5573, allocations: 83.66 kB / 373.3 MB, free: 22.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002348/0.5597, allocations: 0.7408 MB / 374.1 MB, free: 22.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.45e-05/0.5597, allocations: 34.86 kB / 374.1 MB, free: 22.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005801/0.5603, allocations: 0.49 MB / 374.6 MB, free: 22.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.5605, allocations: 102.2 kB / 374.7 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003012/0.5608, allocations: 116.2 kB / 374.8 MB, free: 22.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002232/0.5611, allocations: 383.5 kB / 375.2 MB, free: 21.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006084/0.5617, allocations: 122.5 kB / 375.3 MB, free: 21.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008686/0.5626, allocations: 419.2 kB / 375.7 MB, free: 21.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.5638, allocations: 0.5698 MB / 376.3 MB, free: 20.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-05/0.5638, allocations: 2.562 kB / 376.3 MB, free: 20.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002299/0.5662, allocations: 0.6136 MB / 376.9 MB, free: 20.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.423e-05/0.5662, allocations: 8.641 kB / 376.9 MB, free: 20.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.423e-05/0.5663, allocations: 10.56 kB / 376.9 MB, free: 20.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002836/0.5666, allocations: 32.92 kB / 377 MB, free: 20.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008112/0.5674, allocations: 140.5 kB / 377.1 MB, free: 20.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00125/0.5687, allocations: 1.288 MB / 378.4 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/0.5698, allocations: 34.23 kB / 378.4 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.373e-05/0.5699, allocations: 34.06 kB / 378.5 MB, free: 19.3 MB / 302.1 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.0006226/0.5705, allocations: 237.2 kB / 378.7 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002953/0.5708, allocations: 74.09 kB / 378.8 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001273/0.5721, allocations: 327 kB / 379.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.5721, allocations: 2.75 kB / 379.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.5722, allocations: 1.375 kB / 379.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.5722, allocations: 6.812 kB / 379.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004007/0.5762, allocations: 1.093 MB / 380.2 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.321e-05/0.5763, allocations: 2.438 kB / 380.2 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005159/0.5768, allocations: 61.98 kB / 380.2 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001672/0.577, allocations: 22.81 kB / 380.3 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.011e-05/0.577, allocations: 7.828 kB / 380.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001184/0.5782, allocations: 1.285 MB / 381.6 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.5783, allocations: 1.875 kB / 381.6 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001671/0.5799, allocations: 0.5543 MB / 382.1 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005911/0.5806, allocations: 178.5 kB / 382.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002795/0.5808, allocations: 9.297 kB / 382.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008113/0.5817, allocations: 14.41 kB / 382.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.5819, allocations: 33.98 kB / 382.3 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.145e-05/0.5819, allocations: 13.39 kB / 382.4 MB, free: 16.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001673/0.5836, allocations: 0.4993 MB / 382.9 MB, free: 16.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.5836, allocations: 0 / 382.9 MB, free: 16.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001579/0.5852, allocations: 157.7 kB / 383 MB, free: 16.13 MB / 302.1 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.0003618/0.5856, allocations: 132.3 kB / 383.1 MB, free: 16.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.5872, allocations: 459.3 kB / 383.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.5873, allocations: 1.031 kB / 383.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006356/0.5879, allocations: 234.8 kB / 383.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002032/0.59, allocations: 176.9 kB / 384 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004987/0.595, allocations: 1.795 MB / 385.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000938/0.5959, allocations: 0.9401 MB / 386.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000316/0.5963, allocations: 51.42 kB / 386.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5963, allocations: 0 / 386.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of Templates: time 0.03798/0.6343, allocations: 13.39 MB / 400.2 MB, free: 7.105 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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