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.0009038/0.0009039, allocations: 174.6 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.434/1.434, allocations: 223.3 MB / 241.4 MB, free: 9.961 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.0007598/0.0007598, allocations: 100.2 kB / 292.6 MB, free: 10.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004688/0.0004689, allocations: 15.94 kB / 352.4 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2388, allocations: 50.4 MB / 402.8 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1088/0.3477, allocations: 96.07 MB / 498.8 MB, free: 208 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.348, allocations: 83.95 kB / 498.9 MB, free: 124 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2933/0.6413, allocations: 44.49 MB / 0.5307 GB, free: 83.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.6413, allocations: 0 / 0.5307 GB, free: 83.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001187/0.6414, allocations: 35.94 kB / 0.5307 GB, free: 83.21 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.003404/0.6448, allocations: 1.81 MB / 0.5325 GB, free: 81.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.6449, allocations: 8.031 kB / 0.5325 GB, free: 81.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009017/0.6458, allocations: 286.3 kB / 0.5328 GB, free: 81.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001998/0.6478, allocations: 1.251 MB / 0.534 GB, free: 79.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.439e-05/0.6479, allocations: 112.4 kB / 0.5341 GB, free: 79.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001665/0.648, allocations: 159.9 kB / 0.5342 GB, free: 79.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00207/0.6501, allocations: 1.508 MB / 0.5357 GB, free: 77.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.961e-05/0.6502, allocations: 15.84 kB / 0.5357 GB, free: 77.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.6503, allocations: 60 kB / 0.5358 GB, free: 77.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.419e-05/0.6503, allocations: 40 kB / 0.5358 GB, free: 77.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00168/0.652, allocations: 1.069 MB / 0.5369 GB, free: 76.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006183/0.6582, allocations: 6.407 MB / 0.5431 GB, free: 70.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.6595, allocations: 0.6471 MB / 0.5438 GB, free: 69.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006967/0.6602, allocations: 454.3 kB / 0.5442 GB, free: 68.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.986e-05/0.6602, allocations: 16.59 kB / 0.5442 GB, free: 68.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.6603, allocations: 39.12 kB / 0.5442 GB, free: 68.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 2.705e-06/0.6603, allocations: 4 kB / 0.5442 GB, free: 68.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.004085/0.6644, allocations: 2.505 MB / 0.5467 GB, free: 66.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.6644, allocations: 115.5 kB / 0.5468 GB, free: 66.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001244/0.6657, allocations: 1.247 MB / 0.548 GB, free: 64.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.6657, allocations: 37.7 kB / 0.5481 GB, free: 64.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003767/0.6661, allocations: 0.857 MB / 0.5489 GB, free: 63.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.6662, allocations: 264.3 kB / 0.5491 GB, free: 63.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.508e-05/0.6662, allocations: 20 kB / 0.5492 GB, free: 63.65 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.454e-05/0.6663, allocations: 357.9 kB / 0.5495 GB, free: 63.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000502/0.6668, allocations: 290.5 kB / 0.5498 GB, free: 63.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006647/0.6675, allocations: 0.7577 MB / 0.5505 GB, free: 62.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001185/0.6687, allocations: 1.108 MB / 0.5516 GB, free: 60.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.942e-06/0.6687, allocations: 4 kB / 0.5516 GB, free: 60.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001914/0.6706, allocations: 1.307 MB / 0.5529 GB, free: 59.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.6707, allocations: 12 kB / 0.5529 GB, free: 59.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.6707, allocations: 19.98 kB / 0.5529 GB, free: 59.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004257/0.6711, allocations: 143.1 kB / 0.553 GB, free: 59.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007298/0.6719, allocations: 263.6 kB / 0.5533 GB, free: 58.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002844/0.6747, allocations: 4.321 MB / 0.5575 GB, free: 54.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008202/0.6756, allocations: 75.97 kB / 0.5576 GB, free: 54.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.836e-05/0.6756, allocations: 52 kB / 0.5576 GB, free: 54.11 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.0005641/0.6762, allocations: 357.3 kB / 0.558 GB, free: 53.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.6763, allocations: 138.3 kB / 0.5581 GB, free: 53.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001449/0.6778, allocations: 0.8686 MB / 0.559 GB, free: 52.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.6778, allocations: 11.94 kB / 0.559 GB, free: 52.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.6778, allocations: 4 kB / 0.559 GB, free: 52.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.6778, allocations: 3.984 kB / 0.559 GB, free: 52.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003014/0.6809, allocations: 2.351 MB / 0.5613 GB, free: 50.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.6809, allocations: 4 kB / 0.5613 GB, free: 50.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005053/0.6814, allocations: 135.7 kB / 0.5614 GB, free: 50.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003546/0.6817, allocations: 150.6 kB / 0.5616 GB, free: 49.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.657e-05/0.6818, allocations: 24.06 kB / 0.5616 GB, free: 49.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002723/0.6845, allocations: 4.45 MB / 0.5659 GB, free: 45.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.6845, allocations: 7.984 kB / 0.5659 GB, free: 45.06 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00185/0.6864, allocations: 1.361 MB / 0.5673 GB, free: 43.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003534/0.6868, allocations: 275.4 kB / 0.5675 GB, free: 43.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001334/0.6869, allocations: 24 kB / 0.5675 GB, free: 43.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005551/0.6875, allocations: 40.16 kB / 0.5676 GB, free: 43.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.6876, allocations: 68.36 kB / 0.5676 GB, free: 43.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.505e-05/0.6876, allocations: 28 kB / 0.5677 GB, free: 43.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009252/0.6886, allocations: 0.8273 MB / 0.5685 GB, free: 42.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6886, allocations: 0 / 0.5685 GB, free: 42.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001106/0.6897, allocations: 380 kB / 0.5688 GB, free: 41.98 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.0004072/0.6901, allocations: 375 kB / 0.5692 GB, free: 41.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001443/0.6915, allocations: 1.14 MB / 0.5703 GB, free: 40.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.6916, allocations: 0 / 0.5703 GB, free: 40.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007815/0.6923, allocations: 0.7192 MB / 0.571 GB, free: 39.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001976/0.6943, allocations: 344.6 kB / 0.5713 GB, free: 39.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004239/0.6986, allocations: 3.587 MB / 0.5748 GB, free: 35.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005386/0.6991, allocations: 1.217 MB / 0.576 GB, free: 34.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006364/0.6998, allocations: 171.8 kB / 0.5762 GB, free: 34.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001748/0.7, allocations: 95.41 kB / 0.5763 GB, free: 34.16 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.7, allocations: 4 kB / 0.5763 GB, free: 34.15 MB / 378.7 MB Notification: Performance of Templates: time 0.02908/0.7291, allocations: 19.38 MB / 0.5952 GB, free: 14.94 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/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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches