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.001196/0.001197, allocations: 182.6 kB / 18.04 MB, free: 3.789 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.301/1.301, allocations: 205.4 MB / 224.2 MB, free: 9.051 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.0007259/0.0007259, allocations: 87.91 kB / 272.5 MB, free: 8.289 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002845/0.0002845, allocations: 19.98 kB / 329.5 MB, free: 15.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1928, allocations: 47.56 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09631/0.2891, allocations: 94.71 MB / 471.7 MB, free: 1.832 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.2894, allocations: 83.95 kB / 471.8 MB, free: 1.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2372/0.5266, allocations: 40.6 MB / 0.5004 GB, free: 92.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5266, allocations: 1.438 kB / 0.5004 GB, free: 92.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001078/0.5268, allocations: 41.2 kB / 0.5004 GB, free: 92.65 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.003137/0.5299, allocations: 1.729 MB / 0.5021 GB, free: 91.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.5299, allocations: 9.531 kB / 0.5021 GB, free: 91.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008602/0.5308, allocations: 256.2 kB / 0.5024 GB, free: 91.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002003/0.5328, allocations: 1.144 MB / 0.5035 GB, free: 91.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.684e-05/0.5329, allocations: 116.5 kB / 0.5036 GB, free: 91.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000201/0.5331, allocations: 162 kB / 0.5038 GB, free: 91.22 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00205/0.5352, allocations: 1.48 MB / 0.5052 GB, free: 90.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.371e-05/0.5353, allocations: 9.656 kB / 0.5052 GB, free: 90.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.5354, allocations: 65.88 kB / 0.5053 GB, free: 90.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.335e-05/0.5354, allocations: 38.88 kB / 0.5053 GB, free: 90.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.537, allocations: 0.9866 MB / 0.5063 GB, free: 90.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005979/0.543, allocations: 6.663 MB / 0.5128 GB, free: 87.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006387/0.5436, allocations: 403.4 kB / 0.5132 GB, free: 87.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003393/0.544, allocations: 231 kB / 0.5134 GB, free: 87.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.544, allocations: 7.656 kB / 0.5134 GB, free: 87.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003875/0.5444, allocations: 282.7 kB / 0.5137 GB, free: 87.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.244e-06/0.5444, allocations: 0 / 0.5137 GB, free: 87.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.002665/0.5471, allocations: 2.021 MB / 0.5157 GB, free: 86.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.5472, allocations: 187.3 kB / 0.5158 GB, free: 86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.5483, allocations: 1.228 MB / 0.517 GB, free: 85.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.181e-05/0.5484, allocations: 37.61 kB / 0.5171 GB, free: 85.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003829/0.5488, allocations: 0.8695 MB / 0.5179 GB, free: 84.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.451e-05/0.5489, allocations: 204.2 kB / 0.5181 GB, free: 84.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.023e-05/0.5489, allocations: 21.81 kB / 0.5181 GB, free: 84.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.937e-05/0.549, allocations: 354.7 kB / 0.5185 GB, free: 84.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003906/0.5494, allocations: 233.7 kB / 0.5187 GB, free: 84.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005353/0.5499, allocations: 0.8207 MB / 0.5195 GB, free: 83.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009623/0.5509, allocations: 1.137 MB / 0.5206 GB, free: 82.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/0.5509, allocations: 4.844 kB / 0.5206 GB, free: 82.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001491/0.5524, allocations: 1.187 MB / 0.5218 GB, free: 81.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.43e-05/0.5524, allocations: 46.48 kB / 0.5218 GB, free: 81.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.5525, allocations: 21.23 kB / 0.5218 GB, free: 81.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001826/0.5527, allocations: 64.69 kB / 0.5219 GB, free: 81.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007002/0.5534, allocations: 271.7 kB / 0.5222 GB, free: 81.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001125/0.5545, allocations: 2.582 MB / 0.5247 GB, free: 79.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000852/0.5554, allocations: 75.81 kB / 0.5248 GB, free: 78.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.756e-05/0.5554, allocations: 62.89 kB / 0.5248 GB, free: 78.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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.0004595/0.5559, allocations: 359.8 kB / 0.5252 GB, free: 78.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.556, allocations: 133 kB / 0.5253 GB, free: 78.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008296/0.5569, allocations: 0.5499 MB / 0.5258 GB, free: 78.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.5569, allocations: 11.53 kB / 0.5258 GB, free: 78.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.5569, allocations: 0 / 0.5258 GB, free: 78.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.5569, allocations: 3.141 kB / 0.5258 GB, free: 78.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002089/0.559, allocations: 1.944 MB / 0.5277 GB, free: 77.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.559, allocations: 2.125 kB / 0.5277 GB, free: 77.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003736/0.5594, allocations: 106.2 kB / 0.5278 GB, free: 77.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001144/0.5595, allocations: 56.31 kB / 0.5279 GB, free: 77.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.8e-05/0.5595, allocations: 19.17 kB / 0.5279 GB, free: 77.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.5606, allocations: 2.55 MB / 0.5304 GB, free: 74.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.5607, allocations: 5.781 kB / 0.5304 GB, free: 74.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.5617, allocations: 0.9426 MB / 0.5313 GB, free: 74.03 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002794/0.562, allocations: 245.5 kB / 0.5316 GB, free: 73.83 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.5622, allocations: 29.78 kB / 0.5316 GB, free: 73.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004817/0.5626, allocations: 29.7 kB / 0.5316 GB, free: 73.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.022e-05/0.5627, allocations: 57.38 kB / 0.5317 GB, free: 73.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.5628, allocations: 24.09 kB / 0.5317 GB, free: 73.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008665/0.5637, allocations: 0.8019 MB / 0.5325 GB, free: 73.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5637, allocations: 0 / 0.5325 GB, free: 73.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00104/0.5647, allocations: 338.7 kB / 0.5328 GB, free: 73.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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.0003903/0.5651, allocations: 312.2 kB / 0.5331 GB, free: 73.26 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.5663, allocations: 0.9331 MB / 0.534 GB, free: 72.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.5663, allocations: 3.25 kB / 0.534 GB, free: 72.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005392/0.5669, allocations: 481.3 kB / 0.5345 GB, free: 72.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/0.5688, allocations: 311.8 kB / 0.5348 GB, free: 72.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003663/0.5725, allocations: 3.086 MB / 0.5378 GB, free: 70.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005762/0.5731, allocations: 1.183 MB / 0.5389 GB, free: 69.63 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007157/0.5738, allocations: 175.2 kB / 0.5391 GB, free: 69.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.574, allocations: 83.69 kB / 0.5392 GB, free: 69.58 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.574, allocations: 0 / 0.5392 GB, free: 69.58 MB / 378.7 MB Notification: Performance of Templates: time 0.02487/0.5989, allocations: 16.06 MB / 0.5549 GB, free: 57.39 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/jenkins1/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