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.001501/0.001501, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008088/0.0008089, allocations: 87.78 kB / 292.1 MB, free: 5.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.429e-05/2.433e-05, allocations: 7.984 kB / 350.5 MB, free: 2.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08193/0.08196, allocations: 51.48 MB / 402 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2806/0.3626, allocations: 96.47 MB / 498.5 MB, free: 9.246 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001877/0.3628, allocations: 82.45 kB / 498.6 MB, free: 9.203 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1004/0.4632, allocations: 40.81 MB / 0.5267 GB, free: 1.742 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4633, allocations: 4 kB / 0.5267 GB, free: 1.738 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.347e-05/0.4633, allocations: 35.98 kB / 0.5268 GB, free: 1.703 MB / 394.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.002351/0.4657, allocations: 1.552 MB / 0.5283 GB, free: 100 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.4657, allocations: 12.03 kB / 0.5283 GB, free: 88 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007254/0.4665, allocations: 257.6 kB / 0.5286 GB, free: 15.83 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001742/0.4682, allocations: 1.102 MB / 0.5296 GB, free: 14.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.193e-05/0.4683, allocations: 115.1 kB / 0.5297 GB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000192/0.4685, allocations: 155.9 kB / 0.5299 GB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002236/0.4708, allocations: 1.429 MB / 0.5313 GB, free: 12.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.757e-05/0.4708, allocations: 11.91 kB / 0.5313 GB, free: 12.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/0.471, allocations: 60 kB / 0.5313 GB, free: 12.84 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.711e-05/0.471, allocations: 44 kB / 0.5314 GB, free: 12.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001544/0.4725, allocations: 0.9086 MB / 0.5323 GB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006905/0.4795, allocations: 6.651 MB / 0.5388 GB, free: 4.879 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005679/0.48, allocations: 372.3 kB / 0.5391 GB, free: 4.508 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003077/0.4804, allocations: 202.2 kB / 0.5393 GB, free: 4.309 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.746e-05/0.4804, allocations: 8.375 kB / 0.5393 GB, free: 4.301 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004027/0.4808, allocations: 253.6 kB / 0.5396 GB, free: 4.027 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 2.424e-06/0.4808, allocations: 4 kB / 0.5396 GB, free: 4.023 MB / 410.7 MB Notification: Performance of matching and sorting (n=56): time 0.002224/0.4831, allocations: 1.618 MB / 0.5412 GB, free: 2.344 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.642e-05/0.4832, allocations: 192.5 kB / 0.5413 GB, free: 2.113 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001276/0.4844, allocations: 1.061 MB / 0.5424 GB, free: 1.039 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.849e-05/0.4845, allocations: 37.7 kB / 0.5424 GB, free: 0.9961 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005762/0.4851, allocations: 0.8711 MB / 0.5433 GB, free: 116 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.4852, allocations: 209.3 kB / 0.5435 GB, free: 15.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.525e-05/0.4853, allocations: 20 kB / 0.5435 GB, free: 15.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.4854, allocations: 349.9 kB / 0.5438 GB, free: 15.54 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003351/0.4857, allocations: 206.6 kB / 0.544 GB, free: 15.33 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006535/0.4864, allocations: 0.7878 MB / 0.5448 GB, free: 14.26 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005146/0.4869, allocations: 395 kB / 0.5452 GB, free: 13.87 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.4869, allocations: 4 kB / 0.5452 GB, free: 13.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001596/0.4885, allocations: 1.138 MB / 0.5463 GB, free: 12.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.11e-05/0.4886, allocations: 45.77 kB / 0.5463 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-05/0.4886, allocations: 20 kB / 0.5463 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002323/0.4889, allocations: 73.62 kB / 0.5464 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007677/0.4896, allocations: 263.6 kB / 0.5467 GB, free: 12.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/0.4913, allocations: 2.572 MB / 0.5492 GB, free: 9.469 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008711/0.4922, allocations: 83.98 kB / 0.5492 GB, free: 9.387 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.457e-05/0.4923, allocations: 60 kB / 0.5493 GB, free: 9.328 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 () * 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.0001655/0.4925, allocations: 184.5 kB / 0.5495 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.4926, allocations: 134.3 kB / 0.5496 GB, free: 9.008 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008914/0.4935, allocations: 0.5174 MB / 0.5501 GB, free: 8.469 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.758e-06/0.4935, allocations: 8 kB / 0.5501 GB, free: 8.461 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.4935, allocations: 0 / 0.5501 GB, free: 8.461 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.353e-06/0.4935, allocations: 3.984 kB / 0.5501 GB, free: 8.457 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/0.496, allocations: 1.896 MB / 0.552 GB, free: 6.445 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.496, allocations: 11.89 kB / 0.552 GB, free: 6.434 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004165/0.4964, allocations: 103.9 kB / 0.5521 GB, free: 6.332 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001287/0.4966, allocations: 46.05 kB / 0.5521 GB, free: 6.281 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.125e-05/0.4966, allocations: 20 kB / 0.5522 GB, free: 6.262 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001477/0.4981, allocations: 2.553 MB / 0.5546 GB, free: 3.445 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.4981, allocations: 4 kB / 0.5546 GB, free: 3.441 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.4992, allocations: 1.083 MB / 0.5557 GB, free: 2.168 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003457/0.4996, allocations: 255.4 kB / 0.5559 GB, free: 1.898 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.4997, allocations: 20.12 kB / 0.556 GB, free: 1.879 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004966/0.5002, allocations: 35.98 kB / 0.556 GB, free: 1.844 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.5003, allocations: 59.81 kB / 0.5561 GB, free: 1.785 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.652e-05/0.5004, allocations: 16 kB / 0.5561 GB, free: 1.77 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009912/0.5014, allocations: 0.7897 MB / 0.5568 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5014, allocations: 0 / 0.5568 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001083/0.5025, allocations: 343.9 kB / 0.5572 GB, free: 0.6406 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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) * 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.0004195/0.5029, allocations: 326.3 kB / 0.5575 GB, free: 324 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001206/0.5041, allocations: 0.8827 MB / 0.5583 GB, free: 15.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5041, allocations: 0 / 0.5583 GB, free: 15.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005366/0.5047, allocations: 450.1 kB / 0.5588 GB, free: 14.93 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.5059, allocations: 302.7 kB / 0.5591 GB, free: 14.64 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00301/0.5089, allocations: 1.889 MB / 0.5609 GB, free: 12.68 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007179/0.5097, allocations: 1.213 MB / 0.5621 GB, free: 11.43 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006582/0.5103, allocations: 171.3 kB / 0.5623 GB, free: 11.26 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000173/0.5105, allocations: 95.42 kB / 0.5623 GB, free: 11.17 MB / 442.7 MB Notification: Performance of SimCode: time 1.844e-06/0.5105, allocations: 0 / 0.5623 GB, free: 11.17 MB / 442.7 MB Notification: Performance of Templates: time 0.2122/0.7228, allocations: 16.19 MB / 0.5782 GB, free: 98.11 MB / 442.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