Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001254/0.001254, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009579/0.0009578, allocations: 110.2 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009405/0.0009405, allocations: 51.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.186, allocations: 50.45 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.00841/0.1944, allocations: 11.67 MB / 418.7 MB, free: 16.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004244/0.1987, allocations: 3.236 MB / 422 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007614/0.1995, allocations: 39.88 kB / 422 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001345/0.2009, allocations: 0.5554 MB / 422.6 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001469/0.2023, allocations: 0.574 MB / 423.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000581/0.2029, allocations: 356.7 kB / 423.5 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001576/0.2045, allocations: 2.147 MB / 425.6 MB, free: 9.195 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009001/0.2054, allocations: 0.8579 MB / 426.5 MB, free: 8.293 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009025/0.2063, allocations: 0.7583 MB / 427.2 MB, free: 7.531 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006154/0.207, allocations: 0.8593 MB / 428.1 MB, free: 6.668 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.2071, allocations: 136 kB / 428.2 MB, free: 6.535 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003324/0.2075, allocations: 176 kB / 428.4 MB, free: 6.363 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001731/0.2077, allocations: 354.4 kB / 428.7 MB, free: 6.016 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005782/0.2082, allocations: 0.9328 MB / 429.7 MB, free: 5.078 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001426/0.2097, allocations: 2.585 MB / 432.3 MB, free: 2.484 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2097, allocations: 0 / 432.3 MB, free: 2.484 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.113e-06/0.2097, allocations: 0 / 432.3 MB, free: 2.484 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.07e-05/0.2097, allocations: 4 kB / 432.3 MB, free: 2.48 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002673/0.2124, allocations: 2.06 MB / 434.3 MB, free: 364 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.2124, allocations: 12.02 kB / 434.3 MB, free: 352 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006298/0.2131, allocations: 250.5 kB / 434.6 MB, free: 100 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.2145, allocations: 1.024 MB / 435.6 MB, free: 15.03 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.07e-05/0.2145, allocations: 119.5 kB / 435.7 MB, free: 14.91 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001878/0.2147, allocations: 163.8 kB / 435.9 MB, free: 14.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002175/0.2169, allocations: 1.483 MB / 437.4 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.214e-05/0.217, allocations: 11.84 kB / 437.4 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.2171, allocations: 60 kB / 437.4 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.812e-05/0.2171, allocations: 40 kB / 437.5 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001702/0.2188, allocations: 0.9785 MB / 438.5 MB, free: 12.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007107/0.2259, allocations: 6.582 MB / 445 MB, free: 5.168 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007606/0.2267, allocations: 404.1 kB / 445.4 MB, free: 4.762 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004106/0.2272, allocations: 223.1 kB / 445.7 MB, free: 4.543 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.243e-05/0.2272, allocations: 4.438 kB / 445.7 MB, free: 4.539 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005383/0.2277, allocations: 268.8 kB / 445.9 MB, free: 4.258 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 2.956e-06/0.2278, allocations: 0 / 445.9 MB, free: 4.258 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.00291/0.2307, allocations: 1.758 MB / 447.7 MB, free: 2.402 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.826e-05/0.2308, allocations: 166.8 kB / 447.8 MB, free: 2.203 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001506/0.2323, allocations: 1.273 MB / 449.1 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.484e-05/0.2323, allocations: 37.7 kB / 449.1 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006147/0.2329, allocations: 0.8752 MB / 450 MB, free: 15.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.2331, allocations: 209.2 kB / 450.2 MB, free: 15.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002557/0.2334, allocations: 218.6 kB / 450.4 MB, free: 15.55 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.2335, allocations: 349.9 kB / 450.8 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004303/0.2339, allocations: 238.5 kB / 451 MB, free: 14.97 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007545/0.2347, allocations: 0.7995 MB / 451.8 MB, free: 13.9 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001285/0.236, allocations: 1.114 MB / 452.9 MB, free: 12.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.236, allocations: 8 kB / 452.9 MB, free: 12.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00179/0.2378, allocations: 1.165 MB / 454.1 MB, free: 11.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.52e-05/0.2379, allocations: 52.61 kB / 454.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.838e-05/0.2379, allocations: 20 kB / 454.2 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002023/0.2381, allocations: 65.64 kB / 454.2 MB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007555/0.2389, allocations: 263.6 kB / 454.5 MB, free: 10.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001714/0.2406, allocations: 2.576 MB / 457.1 MB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008242/0.2414, allocations: 63.89 kB / 457.1 MB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.813e-05/0.2415, allocations: 68.09 kB / 457.2 MB, free: 7.945 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004915/0.242, allocations: 371.3 kB / 457.6 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.2422, allocations: 130.3 kB / 457.7 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009786/0.2432, allocations: 0.5489 MB / 458.2 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.2432, allocations: 11.94 kB / 458.3 MB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.237e-06/0.2432, allocations: 4 kB / 458.3 MB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.2432, allocations: 3.984 kB / 458.3 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00247/0.2457, allocations: 1.87 MB / 460.1 MB, free: 4.875 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.2457, allocations: 7.938 kB / 460.1 MB, free: 4.867 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004237/0.2461, allocations: 99.89 kB / 460.2 MB, free: 4.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001441/0.2463, allocations: 54.09 kB / 460.3 MB, free: 4.711 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.076e-05/0.2463, allocations: 20 kB / 460.3 MB, free: 4.691 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001619/0.248, allocations: 2.552 MB / 462.9 MB, free: 1.875 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.248, allocations: 7.938 kB / 462.9 MB, free: 1.867 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007099/0.2551, allocations: 6.465 MB / 469.3 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003276/0.2554, allocations: 259.4 kB / 469.6 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/0.2556, allocations: 19.94 kB / 469.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005133/0.2561, allocations: 31.97 kB / 469.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.2562, allocations: 59.81 kB / 469.7 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.151e-05/0.2563, allocations: 23.98 kB / 469.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001127/0.2574, allocations: 0.8422 MB / 470.6 MB, free: 9.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2574, allocations: 4 kB / 470.6 MB, free: 9.656 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001327/0.2587, allocations: 428 kB / 471 MB, free: 9.238 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.0002294/0.259, allocations: 139.2 kB / 471.1 MB, free: 9.094 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.2604, allocations: 0.9175 MB / 472 MB, free: 8.141 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.2604, allocations: 0 / 472 MB, free: 8.141 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006752/0.2611, allocations: 466.4 kB / 472.5 MB, free: 7.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001433/0.2626, allocations: 316.9 kB / 472.8 MB, free: 7.359 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004398/0.267, allocations: 3.727 MB / 476.5 MB, free: 3.516 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007194/0.2677, allocations: 1.186 MB / 477.7 MB, free: 2.297 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006358/0.2684, allocations: 179.3 kB / 477.9 MB, free: 2.117 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.2685, allocations: 83.44 kB / 478 MB, free: 2.035 MB / 346.7 MB Notification: Performance of SimCode: time 4.61e-07/0.2685, allocations: 0 / 478 MB, free: 2.035 MB / 346.7 MB Notification: Performance of Templates: time 0.02692/0.2955, allocations: 15.41 MB / 493.4 MB, free: 2.75 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches