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.001718/0.001718, allocations: 202.4 kB / 17.08 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 227.2 MB / 245 MB, free: 7.609 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008955/0.0008955, allocations: 96.62 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00021/0.0002099, allocations: 4 kB / 357.9 MB, free: 9.547 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1884/0.1886, allocations: 51.48 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09876/0.2874, allocations: 96.53 MB / 0.4941 GB, free: 10.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.2876, allocations: 81.2 kB / 0.4942 GB, free: 9.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2557/0.5433, allocations: 40.8 MB / 0.534 GB, free: 77.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5433, allocations: 0 / 0.534 GB, free: 77.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.6e-05/0.5435, allocations: 36 kB / 0.534 GB, free: 77.04 MB / 378.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.003222/0.5467, allocations: 1.747 MB / 0.5357 GB, free: 75.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.5467, allocations: 8.031 kB / 0.5358 GB, free: 75.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009058/0.5476, allocations: 265.5 kB / 0.536 GB, free: 74.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002004/0.5497, allocations: 1.102 MB / 0.5371 GB, free: 73.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.429e-05/0.5497, allocations: 119.1 kB / 0.5372 GB, free: 73.69 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002468/0.55, allocations: 159.9 kB / 0.5374 GB, free: 73.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002331/0.5523, allocations: 1.468 MB / 0.5388 GB, free: 71.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.729e-05/0.5524, allocations: 11.89 kB / 0.5388 GB, free: 71.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.5525, allocations: 67.95 kB / 0.5389 GB, free: 71.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.249e-05/0.5526, allocations: 44 kB / 0.5389 GB, free: 71.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001698/0.5543, allocations: 0.9785 MB / 0.5399 GB, free: 70.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006745/0.561, allocations: 6.648 MB / 0.5464 GB, free: 63.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006907/0.5617, allocations: 420.6 kB / 0.5468 GB, free: 63.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.545e-05/0.5618, allocations: 4.438 kB / 0.5468 GB, free: 63.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004356/0.5622, allocations: 272.8 kB / 0.547 GB, free: 63.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.815e-06/0.5622, allocations: 0 / 0.547 GB, free: 63.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.002884/0.5651, allocations: 1.798 MB / 0.5488 GB, free: 61.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.761e-05/0.5652, allocations: 162.8 kB / 0.5489 GB, free: 61.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.5665, allocations: 1.083 MB / 0.55 GB, free: 59.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.5665, allocations: 33.7 kB / 0.55 GB, free: 59.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004534/0.567, allocations: 0.8672 MB / 0.5509 GB, free: 59.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.5671, allocations: 213.2 kB / 0.5511 GB, free: 58.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.262e-05/0.5672, allocations: 20 kB / 0.5511 GB, free: 58.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.764e-05/0.5672, allocations: 353.9 kB / 0.5514 GB, free: 58.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004073/0.5676, allocations: 242.5 kB / 0.5517 GB, free: 58.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006047/0.5683, allocations: 0.8112 MB / 0.5524 GB, free: 57.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005838/0.5689, allocations: 407.6 kB / 0.5528 GB, free: 56.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.11e-05/0.5689, allocations: 8 kB / 0.5528 GB, free: 56.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001705/0.5706, allocations: 1.185 MB / 0.554 GB, free: 55.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/0.5706, allocations: 49.72 kB / 0.554 GB, free: 55.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.186e-05/0.5707, allocations: 24 kB / 0.5541 GB, free: 55.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001997/0.5709, allocations: 69.66 kB / 0.5541 GB, free: 55.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007067/0.5716, allocations: 271.5 kB / 0.5544 GB, free: 55.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001225/0.5728, allocations: 2.587 MB / 0.5569 GB, free: 52.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009473/0.5738, allocations: 76.14 kB / 0.557 GB, free: 52.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.444e-05/0.5739, allocations: 56.09 kB / 0.557 GB, free: 52.14 MB / 378.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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005624/0.5744, allocations: 363.5 kB / 0.5574 GB, free: 51.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.5746, allocations: 134.4 kB / 0.5575 GB, free: 51.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009475/0.5755, allocations: 0.5646 MB / 0.5581 GB, free: 51.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.5756, allocations: 4 kB / 0.5581 GB, free: 51.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.5756, allocations: 4 kB / 0.5581 GB, free: 51.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.5756, allocations: 3.984 kB / 0.5581 GB, free: 51.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002506/0.5781, allocations: 1.849 MB / 0.5599 GB, free: 49.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.5781, allocations: 3.938 kB / 0.5599 GB, free: 49.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004066/0.5785, allocations: 111.8 kB / 0.56 GB, free: 48.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001365/0.5787, allocations: 37.7 kB / 0.56 GB, free: 48.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.274e-05/0.5787, allocations: 16 kB / 0.5601 GB, free: 48.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001112/0.5798, allocations: 2.568 MB / 0.5626 GB, free: 46.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.5798, allocations: 4 kB / 0.5626 GB, free: 46.08 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.5811, allocations: 1.136 MB / 0.5637 GB, free: 44.76 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000422/0.5815, allocations: 251.5 kB / 0.5639 GB, free: 44.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002236/0.5817, allocations: 23.98 kB / 0.5639 GB, free: 44.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005682/0.5823, allocations: 31.98 kB / 0.564 GB, free: 44.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.5824, allocations: 55.81 kB / 0.564 GB, free: 44.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-05/0.5825, allocations: 20 kB / 0.564 GB, free: 44.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009185/0.5834, allocations: 0.8032 MB / 0.5648 GB, free: 43.56 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5834, allocations: 0 / 0.5648 GB, free: 43.56 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0012/0.5846, allocations: 343.9 kB / 0.5652 GB, free: 43.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004875/0.5851, allocations: 310.5 kB / 0.5654 GB, free: 42.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0013/0.5864, allocations: 0.9437 MB / 0.5664 GB, free: 41.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.5864, allocations: 0 / 0.5664 GB, free: 41.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005508/0.587, allocations: 475.4 kB / 0.5668 GB, free: 41.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/0.5882, allocations: 300.2 kB / 0.5671 GB, free: 41.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003829/0.592, allocations: 3.085 MB / 0.5701 GB, free: 38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005872/0.5926, allocations: 1.217 MB / 0.5713 GB, free: 36.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006461/0.5933, allocations: 167.3 kB / 0.5715 GB, free: 36.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.5934, allocations: 83.44 kB / 0.5715 GB, free: 36.5 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.5934, allocations: 0 / 0.5715 GB, free: 36.5 MB / 378.7 MB Notification: Performance of Templates: time 0.02495/0.6184, allocations: 15.82 MB / 0.587 GB, free: 20.81 MB / 378.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/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