Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000978/0.0009824, allocations: 198.5 kB / 18.06 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 226.5 MB / 245.3 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007245/0.0007245, allocations: 107.2 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002125/0.0002125, allocations: 11.98 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1906, allocations: 51.28 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1044/0.2951, allocations: 96.79 MB / 0.4936 GB, free: 10.77 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/0.2953, allocations: 83.95 kB / 0.4937 GB, free: 10.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2447/0.54, allocations: 44.55 MB / 0.5372 GB, free: 74.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5401, allocations: 0 / 0.5372 GB, free: 74.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.742e-05/0.5402, allocations: 39.94 kB / 0.5372 GB, free: 74.55 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.00253/0.5427, allocations: 1.806 MB / 0.539 GB, free: 72.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.5427, allocations: 8.031 kB / 0.539 GB, free: 72.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007326/0.5435, allocations: 286.3 kB / 0.5393 GB, free: 72.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001738/0.5452, allocations: 1.259 MB / 0.5405 GB, free: 71.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.372e-05/0.5453, allocations: 112.2 kB / 0.5406 GB, free: 70.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/0.5454, allocations: 159.9 kB / 0.5408 GB, free: 70.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002059/0.5475, allocations: 1.512 MB / 0.5422 GB, free: 69.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.537e-05/0.5476, allocations: 11.84 kB / 0.5423 GB, free: 69.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/0.5477, allocations: 64 kB / 0.5423 GB, free: 69.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.459e-05/0.5477, allocations: 39.94 kB / 0.5424 GB, free: 69.13 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001734/0.5495, allocations: 1.069 MB / 0.5434 GB, free: 68.06 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00618/0.5557, allocations: 6.407 MB / 0.5497 GB, free: 61.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001354/0.557, allocations: 0.6468 MB / 0.5503 GB, free: 60.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007541/0.5578, allocations: 454.3 kB / 0.5507 GB, free: 60.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.467e-05/0.5579, allocations: 20.64 kB / 0.5507 GB, free: 60.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.5579, allocations: 39.12 kB / 0.5508 GB, free: 60.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 4.609e-06/0.5579, allocations: 0 / 0.5508 GB, free: 60.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.004235/0.5622, allocations: 2.505 MB / 0.5532 GB, free: 57.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.5622, allocations: 111.5 kB / 0.5533 GB, free: 57.44 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001271/0.5635, allocations: 1.251 MB / 0.5545 GB, free: 56.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/0.5635, allocations: 37.7 kB / 0.5546 GB, free: 56.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003611/0.5639, allocations: 0.857 MB / 0.5554 GB, free: 55.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.564, allocations: 264.3 kB / 0.5557 GB, free: 55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.062e-05/0.5641, allocations: 20 kB / 0.5557 GB, free: 54.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.039e-05/0.5641, allocations: 357.9 kB / 0.556 GB, free: 54.63 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005064/0.5646, allocations: 290.5 kB / 0.5563 GB, free: 54.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006351/0.5653, allocations: 0.7498 MB / 0.557 GB, free: 53.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.5665, allocations: 1.115 MB / 0.5581 GB, free: 52.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-06/0.5665, allocations: 4 kB / 0.5581 GB, free: 52.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.00193/0.5684, allocations: 1.303 MB / 0.5594 GB, free: 50.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.5685, allocations: 12 kB / 0.5594 GB, free: 50.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.5685, allocations: 16 kB / 0.5594 GB, free: 50.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004348/0.5689, allocations: 146.8 kB / 0.5596 GB, free: 50.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007365/0.5697, allocations: 259.6 kB / 0.5598 GB, free: 50.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002569/0.5723, allocations: 4.324 MB / 0.564 GB, free: 45.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008493/0.5731, allocations: 76.08 kB / 0.5641 GB, free: 45.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.889e-05/0.5732, allocations: 52 kB / 0.5642 GB, free: 45.44 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (139): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005483/0.5737, allocations: 357.3 kB / 0.5645 GB, free: 45.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.5739, allocations: 138.3 kB / 0.5646 GB, free: 44.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001531/0.5754, allocations: 0.8802 MB / 0.5655 GB, free: 44.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.5754, allocations: 4 kB / 0.5655 GB, free: 44.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.5755, allocations: 4 kB / 0.5655 GB, free: 44.03 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.5755, allocations: 3.984 kB / 0.5655 GB, free: 44.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003143/0.5786, allocations: 2.35 MB / 0.5678 GB, free: 41.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.5786, allocations: 4 kB / 0.5678 GB, free: 41.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005306/0.5792, allocations: 140.2 kB / 0.5679 GB, free: 41.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003819/0.5796, allocations: 146.4 kB / 0.5681 GB, free: 41.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.098e-05/0.5796, allocations: 16 kB / 0.5681 GB, free: 41.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00273/0.5824, allocations: 4.458 MB / 0.5725 GB, free: 36.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.5824, allocations: 4 kB / 0.5725 GB, free: 36.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001922/0.5843, allocations: 1.365 MB / 0.5738 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003549/0.5847, allocations: 279.4 kB / 0.5741 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/0.5848, allocations: 16 kB / 0.5741 GB, free: 34.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000579/0.5854, allocations: 47.97 kB / 0.5741 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.5855, allocations: 64.5 kB / 0.5742 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.659e-05/0.5856, allocations: 23.98 kB / 0.5742 GB, free: 34.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009668/0.5865, allocations: 0.8312 MB / 0.575 GB, free: 33.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5865, allocations: 7.938 kB / 0.575 GB, free: 33.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001144/0.5877, allocations: 376 kB / 0.5754 GB, free: 33.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004018/0.5881, allocations: 378.2 kB / 0.5757 GB, free: 32.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001508/0.5896, allocations: 1.14 MB / 0.5769 GB, free: 31.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.5896, allocations: 0 / 0.5769 GB, free: 31.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008044/0.5904, allocations: 0.7233 MB / 0.5776 GB, free: 31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001987/0.5924, allocations: 346.7 kB / 0.5779 GB, free: 30.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004274/0.5967, allocations: 3.628 MB / 0.5814 GB, free: 26.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005222/0.5973, allocations: 1.214 MB / 0.5826 GB, free: 25.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002393/0.5975, allocations: 103.4 kB / 0.5827 GB, free: 25.6 MB / 378.7 MB Notification: Performance of SimCode: time 4.2e-07/0.5975, allocations: 0 / 0.5827 GB, free: 25.6 MB / 378.7 MB Notification: Performance of Templates: time 0.03645/0.634, allocations: 41.86 MB / 0.6236 GB, free: 15.76 MB / 410.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches