Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001367/0.001367, allocations: 181 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.853/1.853, allocations: 205.4 MB / 223.1 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008976/0.0008974, allocations: 86.59 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002611/0.0002612, allocations: 8 kB / 328.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2635, allocations: 47.57 MB / 375.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1195/0.3831, allocations: 94.57 MB / 470.4 MB, free: 2.078 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/0.3834, allocations: 87.95 kB / 470.5 MB, free: 1.992 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3241/0.7075, allocations: 40.74 MB / 0.4992 GB, free: 92.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.925e-06/0.7076, allocations: 0 / 0.4992 GB, free: 92.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001279/0.7077, allocations: 35.28 kB / 0.4993 GB, free: 92.51 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.005908/0.7136, allocations: 1.755 MB / 0.501 GB, free: 91.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.267e-05/0.7137, allocations: 9.469 kB / 0.501 GB, free: 91.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00148/0.7152, allocations: 256 kB / 0.5012 GB, free: 91.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003264/0.7185, allocations: 1.109 MB / 0.5023 GB, free: 91.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.7186, allocations: 114.7 kB / 0.5024 GB, free: 91.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002985/0.719, allocations: 160.8 kB / 0.5026 GB, free: 91.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002839/0.7218, allocations: 1.463 MB / 0.504 GB, free: 90.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.564e-05/0.7219, allocations: 14.59 kB / 0.504 GB, free: 90.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001346/0.722, allocations: 64.41 kB / 0.5041 GB, free: 90.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.333e-05/0.7221, allocations: 40.14 kB / 0.5041 GB, free: 90.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001855/0.7239, allocations: 0.9804 MB / 0.5051 GB, free: 90.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008525/0.7325, allocations: 6.661 MB / 0.5116 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007682/0.7333, allocations: 409.2 kB / 0.512 GB, free: 87.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.555e-05/0.7334, allocations: 8.281 kB / 0.512 GB, free: 87.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004963/0.7339, allocations: 266.4 kB / 0.5122 GB, free: 87.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.975e-06/0.7339, allocations: 4 kB / 0.5122 GB, free: 87.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.003684/0.7376, allocations: 1.79 MB / 0.514 GB, free: 86.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.616e-05/0.7377, allocations: 173.1 kB / 0.5141 GB, free: 86.26 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001363/0.739, allocations: 1.075 MB / 0.5152 GB, free: 85.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.7391, allocations: 37.17 kB / 0.5152 GB, free: 85.76 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000525/0.7396, allocations: 0.8704 MB / 0.5161 GB, free: 85.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.7397, allocations: 209.4 kB / 0.5163 GB, free: 84.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.484e-05/0.7398, allocations: 23.69 kB / 0.5163 GB, free: 84.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.959e-05/0.7399, allocations: 345.7 kB / 0.5166 GB, free: 84.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004431/0.7403, allocations: 245.8 kB / 0.5169 GB, free: 84.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006323/0.741, allocations: 0.8068 MB / 0.5177 GB, free: 83.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005995/0.7416, allocations: 407.9 kB / 0.518 GB, free: 83.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.7416, allocations: 7.844 kB / 0.5181 GB, free: 83.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001777/0.7434, allocations: 1.2 MB / 0.5192 GB, free: 82.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.619e-05/0.7435, allocations: 46.48 kB / 0.5193 GB, free: 82.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.003e-05/0.7435, allocations: 19.09 kB / 0.5193 GB, free: 82.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002536/0.7437, allocations: 66.92 kB / 0.5194 GB, free: 82.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007327/0.7445, allocations: 262.9 kB / 0.5196 GB, free: 82.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001438/0.7459, allocations: 2.596 MB / 0.5221 GB, free: 80.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.747, allocations: 74.16 kB / 0.5222 GB, free: 80.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.716e-05/0.7471, allocations: 59.81 kB / 0.5223 GB, free: 80.15 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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.0006403/0.7477, allocations: 361 kB / 0.5226 GB, free: 79.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.7478, allocations: 133.2 kB / 0.5227 GB, free: 79.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009589/0.7488, allocations: 0.5659 MB / 0.5233 GB, free: 79.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.7488, allocations: 8.344 kB / 0.5233 GB, free: 79.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.7488, allocations: 0 / 0.5233 GB, free: 79.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.7488, allocations: 3.516 kB / 0.5233 GB, free: 79.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002348/0.7512, allocations: 1.858 MB / 0.5251 GB, free: 78.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.7512, allocations: 0 / 0.5251 GB, free: 78.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004001/0.7516, allocations: 107.8 kB / 0.5252 GB, free: 78.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001327/0.7518, allocations: 47.14 kB / 0.5253 GB, free: 78.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.041e-05/0.7518, allocations: 21.19 kB / 0.5253 GB, free: 78.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.753, allocations: 2.555 MB / 0.5278 GB, free: 75.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.753, allocations: 9.156 kB / 0.5278 GB, free: 75.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.7542, allocations: 1.126 MB / 0.5289 GB, free: 75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004005/0.7547, allocations: 255.4 kB / 0.5291 GB, free: 74.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.7548, allocations: 24.75 kB / 0.5292 GB, free: 74.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005168/0.7553, allocations: 33.92 kB / 0.5292 GB, free: 74.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.7554, allocations: 45.02 kB / 0.5292 GB, free: 74.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.812e-05/0.7555, allocations: 28.55 kB / 0.5293 GB, free: 74.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001036/0.7565, allocations: 0.8076 MB / 0.53 GB, free: 74.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7565, allocations: 0 / 0.53 GB, free: 74.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001405/0.7579, allocations: 345.5 kB / 0.5304 GB, free: 74.37 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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.0005241/0.7585, allocations: 310.3 kB / 0.5307 GB, free: 74.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.76, allocations: 0.9425 MB / 0.5316 GB, free: 73.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.76, allocations: 3.844 kB / 0.5316 GB, free: 73.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005796/0.7606, allocations: 478.6 kB / 0.5321 GB, free: 73.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/0.7618, allocations: 306.3 kB / 0.5323 GB, free: 73.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004326/0.7662, allocations: 3.073 MB / 0.5353 GB, free: 71.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007122/0.7669, allocations: 1.215 MB / 0.5365 GB, free: 70.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007514/0.7677, allocations: 167.3 kB / 0.5367 GB, free: 70.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001741/0.7678, allocations: 85.09 kB / 0.5368 GB, free: 70.56 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.7679, allocations: 0 / 0.5368 GB, free: 70.56 MB / 378.7 MB Notification: Performance of Templates: time 0.0301/0.798, allocations: 15.84 MB / 0.5522 GB, free: 59.29 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches