Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008885/0.0008887, allocations: 171 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 223.3 MB / 241.4 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008025/0.0008027, allocations: 101.9 kB / 292.6 MB, free: 10.8 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000317/0.000317, allocations: 15.94 kB / 352.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2059/0.2063, allocations: 50.39 MB / 402.8 MB, free: 32.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1108/0.3171, allocations: 99.67 MB / 0.4906 GB, free: 12.67 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.3174, allocations: 83.95 kB / 0.4907 GB, free: 12.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2459/0.5634, allocations: 28.6 MB / 0.5187 GB, free: 93.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.5634, allocations: 0 / 0.5187 GB, free: 93.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.036e-05/0.5635, allocations: 24.86 kB / 0.5187 GB, free: 93.54 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002439/0.5659, allocations: 1.279 MB / 0.5199 GB, free: 92.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.566, allocations: 7.469 kB / 0.5199 GB, free: 92.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007944/0.5668, allocations: 197.2 kB / 0.5201 GB, free: 92.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00173/0.5685, allocations: 0.8421 MB / 0.5209 GB, free: 92.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.448e-05/0.5686, allocations: 68.75 kB / 0.521 GB, free: 92.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001511/0.5688, allocations: 102.3 kB / 0.5211 GB, free: 92.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/0.5702, allocations: 0.9465 MB / 0.522 GB, free: 91.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.232e-05/0.5703, allocations: 3.938 kB / 0.522 GB, free: 91.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.357e-05/0.5704, allocations: 43.78 kB / 0.5221 GB, free: 91.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/0.5704, allocations: 23.47 kB / 0.5221 GB, free: 91.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001144/0.5716, allocations: 0.6621 MB / 0.5227 GB, free: 91.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004756/0.5763, allocations: 3.945 MB / 0.5266 GB, free: 87.13 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006335/0.577, allocations: 476.9 kB / 0.5271 GB, free: 86.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004901/0.5775, allocations: 275.2 kB / 0.5273 GB, free: 86.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.349e-05/0.5775, allocations: 4 kB / 0.5273 GB, free: 86.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.5775, allocations: 42.5 kB / 0.5274 GB, free: 86.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.624e-06/0.5776, allocations: 4 kB / 0.5274 GB, free: 86.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.00262/0.5802, allocations: 1.549 MB / 0.5289 GB, free: 84.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.934e-05/0.5802, allocations: 85.48 kB / 0.529 GB, free: 84.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/0.5813, allocations: 0.7981 MB / 0.5297 GB, free: 83.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.085e-05/0.5813, allocations: 29.7 kB / 0.5298 GB, free: 83.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002782/0.5816, allocations: 0.57 MB / 0.5303 GB, free: 83.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.84e-05/0.5817, allocations: 170.2 kB / 0.5305 GB, free: 83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.27e-05/0.5817, allocations: 16 kB / 0.5305 GB, free: 82.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.323e-05/0.5818, allocations: 337.9 kB / 0.5308 GB, free: 82.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003217/0.5821, allocations: 181.9 kB / 0.531 GB, free: 82.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000402/0.5826, allocations: 490.9 kB / 0.5315 GB, free: 81.86 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007504/0.5833, allocations: 0.7 MB / 0.5321 GB, free: 81.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.5833, allocations: 4 kB / 0.5321 GB, free: 81.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001183/0.5845, allocations: 0.8286 MB / 0.533 GB, free: 80.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.5845, allocations: 11.98 kB / 0.533 GB, free: 80.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.5846, allocations: 12 kB / 0.533 GB, free: 80.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002668/0.5848, allocations: 93.95 kB / 0.5331 GB, free: 80.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004643/0.5853, allocations: 163.7 kB / 0.5332 GB, free: 79.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001869/0.5872, allocations: 2.997 MB / 0.5362 GB, free: 76.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006907/0.5879, allocations: 43.89 kB / 0.5362 GB, free: 76.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.774e-05/0.588, allocations: 40 kB / 0.5362 GB, free: 76.56 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006227/0.5886, allocations: 269.5 kB / 0.5365 GB, free: 76.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.5887, allocations: 90.88 kB / 0.5366 GB, free: 76.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008903/0.5896, allocations: 0.5456 MB / 0.5371 GB, free: 75.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.5896, allocations: 4 kB / 0.5371 GB, free: 75.63 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.5896, allocations: 4 kB / 0.5371 GB, free: 75.63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.5896, allocations: 11.92 kB / 0.5371 GB, free: 75.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/0.5915, allocations: 1.5 MB / 0.5386 GB, free: 74.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.5915, allocations: 0 / 0.5386 GB, free: 74.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003041/0.5919, allocations: 79.89 kB / 0.5387 GB, free: 73.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002115/0.5921, allocations: 97.3 kB / 0.5388 GB, free: 73.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.646e-05/0.5921, allocations: 12 kB / 0.5388 GB, free: 73.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001667/0.5938, allocations: 2.975 MB / 0.5417 GB, free: 70.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5938, allocations: 0 / 0.5417 GB, free: 70.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.595, allocations: 0.8638 MB / 0.5425 GB, free: 69.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000298/0.5953, allocations: 200 kB / 0.5427 GB, free: 69.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.954e-05/0.5954, allocations: 16 kB / 0.5427 GB, free: 69.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003885/0.5958, allocations: 27.98 kB / 0.5428 GB, free: 69.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.658e-05/0.5959, allocations: 51.81 kB / 0.5428 GB, free: 69.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.596, allocations: 12 kB / 0.5428 GB, free: 69.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006641/0.5966, allocations: 0.542 MB / 0.5433 GB, free: 68.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5966, allocations: 0 / 0.5433 GB, free: 68.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009439/0.5976, allocations: 243.9 kB / 0.5436 GB, free: 68.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000375/0.598, allocations: 316.7 kB / 0.5439 GB, free: 68.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.5992, allocations: 0.7422 MB / 0.5446 GB, free: 67.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.5993, allocations: 0.5625 kB / 0.5446 GB, free: 67.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006317/0.5999, allocations: 484.8 kB / 0.5451 GB, free: 67.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.6012, allocations: 208.4 kB / 0.5453 GB, free: 66.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003313/0.6045, allocations: 2.156 MB / 0.5474 GB, free: 64.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.605, allocations: 1.009 MB / 0.5484 GB, free: 63.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004759/0.6055, allocations: 111.4 kB / 0.5485 GB, free: 63.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.6056, allocations: 59.42 kB / 0.5485 GB, free: 63.44 MB / 378.7 MB Notification: Performance of SimCode: time 1.402e-06/0.6056, allocations: 4 kB / 0.5485 GB, free: 63.43 MB / 378.7 MB Notification: Performance of Templates: time 0.01941/0.625, allocations: 12.25 MB / 0.5605 GB, free: 51.32 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches