Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.391/1.391, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0008625/0.0008625, allocations: 99.42 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002397/0.0002398, allocations: 11.94 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2523, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1167/0.3691, allocations: 95.99 MB / 497.5 MB, free: 472 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/0.3694, allocations: 83.95 kB / 497.6 MB, free: 388 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3074/0.6768, allocations: 44.66 MB / 0.5295 GB, free: 83.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.6769, allocations: 4 kB / 0.5295 GB, free: 83.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001154/0.677, allocations: 32 kB / 0.5296 GB, free: 83.36 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.004053/0.6811, allocations: 1.832 MB / 0.5314 GB, free: 81.47 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.6811, allocations: 12.56 kB / 0.5314 GB, free: 81.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001187/0.6823, allocations: 290.2 kB / 0.5316 GB, free: 81.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002634/0.685, allocations: 1.208 MB / 0.5328 GB, free: 79.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.353e-05/0.685, allocations: 119 kB / 0.5329 GB, free: 79.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000286/0.6853, allocations: 159.9 kB / 0.5331 GB, free: 79.63 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002533/0.6879, allocations: 1.488 MB / 0.5345 GB, free: 78.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.927e-05/0.688, allocations: 15.91 kB / 0.5346 GB, free: 78.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/0.6881, allocations: 64 kB / 0.5346 GB, free: 78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.934e-05/0.6881, allocations: 36 kB / 0.5347 GB, free: 77.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002208/0.6904, allocations: 1.076 MB / 0.5357 GB, free: 76.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008393/0.6988, allocations: 6.4 MB / 0.542 GB, free: 70.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.7003, allocations: 0.6505 MB / 0.5426 GB, free: 69.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.422e-05/0.7004, allocations: 8.562 kB / 0.5426 GB, free: 69.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.7004, allocations: 35.12 kB / 0.5426 GB, free: 69.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 2.555e-06/0.7004, allocations: 4 kB / 0.5426 GB, free: 69.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.005046/0.7055, allocations: 2.486 MB / 0.5451 GB, free: 66.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.634e-05/0.7056, allocations: 107.5 kB / 0.5452 GB, free: 66.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001888/0.7075, allocations: 1.111 MB / 0.5462 GB, free: 65.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.395e-05/0.7075, allocations: 41.7 kB / 0.5463 GB, free: 65.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000501/0.7081, allocations: 0.861 MB / 0.5471 GB, free: 64.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002043/0.7083, allocations: 260.3 kB / 0.5474 GB, free: 64.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.407e-05/0.7083, allocations: 20 kB / 0.5474 GB, free: 64.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.7084, allocations: 349.9 kB / 0.5477 GB, free: 64.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005423/0.709, allocations: 298.5 kB / 0.548 GB, free: 63.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006956/0.7097, allocations: 0.7452 MB / 0.5487 GB, free: 62.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006492/0.7104, allocations: 411 kB / 0.5491 GB, free: 62.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.7104, allocations: 8 kB / 0.5491 GB, free: 62.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002158/0.7125, allocations: 1.307 MB / 0.5504 GB, free: 61.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.7126, allocations: 18.61 kB / 0.5504 GB, free: 61.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.7126, allocations: 20 kB / 0.5505 GB, free: 61.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004695/0.7131, allocations: 146.8 kB / 0.5506 GB, free: 60.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007818/0.7139, allocations: 259.6 kB / 0.5508 GB, free: 60.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002801/0.7167, allocations: 4.336 MB / 0.5551 GB, free: 55.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/0.7178, allocations: 71.89 kB / 0.5551 GB, free: 55.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.728e-05/0.7178, allocations: 56 kB / 0.5552 GB, free: 55.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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.0006605/0.7185, allocations: 353.3 kB / 0.5555 GB, free: 55.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000219/0.7187, allocations: 138.6 kB / 0.5557 GB, free: 55.31 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/0.7204, allocations: 0.8764 MB / 0.5565 GB, free: 54.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.7204, allocations: 11.98 kB / 0.5565 GB, free: 54.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.7204, allocations: 0 / 0.5565 GB, free: 54.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.7204, allocations: 7.938 kB / 0.5565 GB, free: 54.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003487/0.7239, allocations: 2.349 MB / 0.5588 GB, free: 51.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.7239, allocations: 4 kB / 0.5588 GB, free: 51.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000554/0.7245, allocations: 132.2 kB / 0.559 GB, free: 51.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003934/0.7249, allocations: 146.4 kB / 0.5591 GB, free: 51.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.839e-05/0.7249, allocations: 19.94 kB / 0.5591 GB, free: 51.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002933/0.7279, allocations: 4.501 MB / 0.5635 GB, free: 46.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.7279, allocations: 4 kB / 0.5635 GB, free: 46.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002025/0.7299, allocations: 1.556 MB / 0.565 GB, free: 44.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004672/0.7304, allocations: 283.4 kB / 0.5653 GB, free: 44.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002124/0.7306, allocations: 16 kB / 0.5653 GB, free: 44.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006655/0.7313, allocations: 43.97 kB / 0.5654 GB, free: 44.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.7314, allocations: 64.38 kB / 0.5654 GB, free: 44.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.601e-05/0.7315, allocations: 28 kB / 0.5655 GB, free: 44.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001024/0.7325, allocations: 0.8273 MB / 0.5663 GB, free: 43.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.7325, allocations: 0 / 0.5663 GB, free: 43.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001267/0.7338, allocations: 383.9 kB / 0.5666 GB, free: 43.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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.0005098/0.7343, allocations: 379.3 kB / 0.567 GB, free: 42.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.736, allocations: 1.147 MB / 0.5681 GB, free: 41.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.736, allocations: 1.875 kB / 0.5681 GB, free: 41.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008411/0.7368, allocations: 0.7186 MB / 0.5688 GB, free: 41.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.7381, allocations: 335.8 kB / 0.5691 GB, free: 40.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004725/0.7428, allocations: 3.578 MB / 0.5726 GB, free: 37.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006414/0.7435, allocations: 1.249 MB / 0.5739 GB, free: 35.76 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007055/0.7442, allocations: 183.7 kB / 0.574 GB, free: 35.58 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002576/0.7445, allocations: 87.42 kB / 0.5741 GB, free: 35.49 MB / 378.7 MB Notification: Performance of SimCode: time 8.11e-07/0.7445, allocations: 0 / 0.5741 GB, free: 35.49 MB / 378.7 MB Notification: Performance of Templates: time 0.03099/0.7755, allocations: 19.09 MB / 0.5928 GB, free: 16.57 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches