Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001368/0.001368, allocations: 198.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 226.5 MB / 245.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007155/0.0007155, allocations: 105.5 kB / 297.4 MB, free: 6.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002208/0.0002209, allocations: 4 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1825, allocations: 51.29 MB / 408.7 MB, free: 27.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1188/0.3013, allocations: 96.55 MB / 0.4934 GB, free: 10.97 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.3016, allocations: 87.95 kB / 0.4935 GB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2494/0.551, allocations: 40.65 MB / 0.5331 GB, free: 78.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.551, allocations: 0 / 0.5331 GB, free: 78.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001411/0.5512, allocations: 35.94 kB / 0.5332 GB, free: 78.69 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.003615/0.5548, allocations: 1.742 MB / 0.5349 GB, free: 76.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.5549, allocations: 8.031 kB / 0.5349 GB, free: 76.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008313/0.5557, allocations: 254.5 kB / 0.5351 GB, free: 76.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001893/0.5576, allocations: 1.133 MB / 0.5362 GB, free: 75.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.758e-05/0.5577, allocations: 116.2 kB / 0.5363 GB, free: 75.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000216/0.5579, allocations: 159.9 kB / 0.5365 GB, free: 75.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002208/0.5601, allocations: 1.487 MB / 0.538 GB, free: 73.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.185e-05/0.5602, allocations: 15.83 kB / 0.538 GB, free: 73.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/0.5603, allocations: 60 kB / 0.538 GB, free: 73.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.249e-05/0.5604, allocations: 40 kB / 0.5381 GB, free: 73.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001685/0.562, allocations: 0.9864 MB / 0.539 GB, free: 72.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006526/0.5686, allocations: 6.663 MB / 0.5455 GB, free: 65.49 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007026/0.5693, allocations: 408.7 kB / 0.5459 GB, free: 65.08 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003603/0.5697, allocations: 231.6 kB / 0.5461 GB, free: 64.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.182e-05/0.5697, allocations: 4.438 kB / 0.5461 GB, free: 64.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000414/0.5702, allocations: 285.6 kB / 0.5464 GB, free: 64.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.775e-06/0.5702, allocations: 3.984 kB / 0.5464 GB, free: 64.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.003074/0.5733, allocations: 2.015 MB / 0.5484 GB, free: 62.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.5733, allocations: 192.5 kB / 0.5486 GB, free: 62.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001383/0.5747, allocations: 1.218 MB / 0.5498 GB, free: 60.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.5748, allocations: 45.62 kB / 0.5498 GB, free: 60.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004778/0.5752, allocations: 0.8672 MB / 0.5507 GB, free: 60.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.5754, allocations: 205.2 kB / 0.5509 GB, free: 59.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.593e-05/0.5754, allocations: 24 kB / 0.5509 GB, free: 59.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.367e-05/0.5755, allocations: 357.9 kB / 0.5512 GB, free: 59.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004055/0.5759, allocations: 230.5 kB / 0.5514 GB, free: 59.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000626/0.5765, allocations: 0.8121 MB / 0.5522 GB, free: 58.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.5776, allocations: 1.15 MB / 0.5534 GB, free: 56.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.786e-06/0.5776, allocations: 4 kB / 0.5534 GB, free: 56.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.00162/0.5793, allocations: 1.188 MB / 0.5545 GB, free: 55.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.303e-05/0.5793, allocations: 41.7 kB / 0.5546 GB, free: 55.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.775e-05/0.5793, allocations: 20 kB / 0.5546 GB, free: 55.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001953/0.5795, allocations: 61.7 kB / 0.5546 GB, free: 55.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007493/0.5803, allocations: 272 kB / 0.5549 GB, free: 55.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/0.5815, allocations: 2.587 MB / 0.5574 GB, free: 52.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008709/0.5824, allocations: 68.14 kB / 0.5575 GB, free: 52.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.697e-05/0.5825, allocations: 64 kB / 0.5575 GB, free: 52.12 MB / 378.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 () * 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.0005435/0.583, allocations: 369.2 kB / 0.5579 GB, free: 51.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.5832, allocations: 134.3 kB / 0.558 GB, free: 51.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009123/0.5841, allocations: 0.5528 MB / 0.5586 GB, free: 51.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.5841, allocations: 12 kB / 0.5586 GB, free: 51.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.5841, allocations: 0 / 0.5586 GB, free: 51.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.5841, allocations: 3.938 kB / 0.5586 GB, free: 51.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002442/0.5866, allocations: 1.928 MB / 0.5605 GB, free: 48.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.5866, allocations: 4 kB / 0.5605 GB, free: 48.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003936/0.587, allocations: 112.2 kB / 0.5606 GB, free: 48.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001285/0.5871, allocations: 45.7 kB / 0.5606 GB, free: 48.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.944e-05/0.5872, allocations: 16 kB / 0.5606 GB, free: 48.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.5883, allocations: 2.553 MB / 0.5631 GB, free: 45.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.5883, allocations: 4 kB / 0.5631 GB, free: 45.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.5894, allocations: 0.9341 MB / 0.564 GB, free: 44.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003602/0.5898, allocations: 255.3 kB / 0.5643 GB, free: 44.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001682/0.59, allocations: 16 kB / 0.5643 GB, free: 44.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000518/0.5905, allocations: 35.97 kB / 0.5643 GB, free: 44.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.509e-05/0.5906, allocations: 59.81 kB / 0.5644 GB, free: 44.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.498e-05/0.5907, allocations: 19.98 kB / 0.5644 GB, free: 44.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009681/0.5916, allocations: 0.8032 MB / 0.5652 GB, free: 43.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5916, allocations: 0 / 0.5652 GB, free: 43.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00113/0.5928, allocations: 343.9 kB / 0.5655 GB, free: 43.45 MB / 378.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) * 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.0003752/0.5932, allocations: 311.1 kB / 0.5658 GB, free: 43.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.5944, allocations: 0.9332 MB / 0.5667 GB, free: 42.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.5945, allocations: 0 / 0.5667 GB, free: 42.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005216/0.595, allocations: 470.1 kB / 0.5672 GB, free: 41.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002069/0.5971, allocations: 325.5 kB / 0.5675 GB, free: 41.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004031/0.6011, allocations: 3.139 MB / 0.5706 GB, free: 38.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005519/0.6017, allocations: 1.185 MB / 0.5717 GB, free: 36.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002072/0.6019, allocations: 91.44 kB / 0.5718 GB, free: 36.84 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.6019, allocations: 0 / 0.5718 GB, free: 36.84 MB / 378.7 MB Notification: Performance of Templates: time 0.03015/0.6321, allocations: 32.21 MB / 0.6033 GB, free: 4.645 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches