Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001629/0.001629, allocations: 180.5 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.941/2.941, allocations: 205.4 MB / 223.6 MB, free: 8.934 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.001783/0.001783, allocations: 87.36 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005409/0.0005414, allocations: 8 kB / 328.2 MB, free: 15.92 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4537/0.4543, allocations: 47.57 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1843/0.6387, allocations: 94.7 MB / 470.4 MB, free: 1.898 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003955/0.6391, allocations: 83.95 kB / 470.5 MB, free: 1.816 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5724/1.212, allocations: 40.61 MB / 0.4991 GB, free: 92.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.873e-06/1.212, allocations: 0 / 0.4991 GB, free: 92.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002516/1.212, allocations: 39.12 kB / 0.4992 GB, free: 92.48 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.009754/1.222, allocations: 1.726 MB / 0.5009 GB, free: 91.56 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001024/1.222, allocations: 11.97 kB / 0.5009 GB, free: 91.56 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002556/1.224, allocations: 259.7 kB / 0.5011 GB, free: 91.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005927/1.23, allocations: 1.143 MB / 0.5022 GB, free: 91.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000331/1.231, allocations: 116.7 kB / 0.5023 GB, free: 91.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000823/1.232, allocations: 159.8 kB / 0.5025 GB, free: 91.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005767/1.237, allocations: 1.484 MB / 0.5039 GB, free: 90.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-05/1.238, allocations: 8.594 kB / 0.504 GB, free: 90.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00022/1.238, allocations: 67.31 kB / 0.504 GB, free: 90.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.944e-05/1.238, allocations: 37.84 kB / 0.5041 GB, free: 90.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003417/1.241, allocations: 0.9879 MB / 0.505 GB, free: 90.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01418/1.256, allocations: 6.661 MB / 0.5115 GB, free: 87.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001334/1.257, allocations: 407.7 kB / 0.5119 GB, free: 87.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007463/1.258, allocations: 226.9 kB / 0.5121 GB, free: 87.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.935e-05/1.258, allocations: 4.375 kB / 0.5121 GB, free: 87.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008232/1.259, allocations: 285 kB / 0.5124 GB, free: 87.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 4.939e-06/1.259, allocations: 0 / 0.5124 GB, free: 87.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.006587/1.265, allocations: 2.02 MB / 0.5144 GB, free: 86.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.268e-05/1.265, allocations: 184.3 kB / 0.5146 GB, free: 85.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002692/1.268, allocations: 1.228 MB / 0.5158 GB, free: 85.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.812e-05/1.268, allocations: 41.7 kB / 0.5158 GB, free: 85.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009247/1.269, allocations: 0.8693 MB / 0.5166 GB, free: 84.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002772/1.27, allocations: 208.5 kB / 0.5168 GB, free: 84.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.758e-05/1.27, allocations: 22.25 kB / 0.5169 GB, free: 84.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/1.27, allocations: 349.9 kB / 0.5172 GB, free: 84.13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007759/1.271, allocations: 230 kB / 0.5174 GB, free: 84.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/1.272, allocations: 0.821 MB / 0.5182 GB, free: 83.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00199/1.274, allocations: 1.137 MB / 0.5193 GB, free: 82.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.72e-05/1.274, allocations: 6.219 kB / 0.5193 GB, free: 82.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003607/1.278, allocations: 1.189 MB / 0.5205 GB, free: 81.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.146e-05/1.278, allocations: 46.23 kB / 0.5205 GB, free: 81.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.019e-05/1.278, allocations: 18.81 kB / 0.5206 GB, free: 81.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003823/1.278, allocations: 74.44 kB / 0.5206 GB, free: 81.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/1.279, allocations: 268.8 kB / 0.5209 GB, free: 81.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002214/1.282, allocations: 2.581 MB / 0.5234 GB, free: 78.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002285/1.284, allocations: 78.27 kB / 0.5235 GB, free: 78.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000181/1.284, allocations: 60.16 kB / 0.5235 GB, free: 78.84 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.001282/1.286, allocations: 359.6 kB / 0.5239 GB, free: 78.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004639/1.286, allocations: 137.5 kB / 0.524 GB, free: 78.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001807/1.288, allocations: 0.5494 MB / 0.5245 GB, free: 78.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/1.288, allocations: 7.25 kB / 0.5246 GB, free: 78.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.657e-06/1.288, allocations: 0 / 0.5246 GB, free: 78.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/1.288, allocations: 7.688 kB / 0.5246 GB, free: 78.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004682/1.293, allocations: 1.943 MB / 0.5265 GB, free: 77.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/1.293, allocations: 6.578 kB / 0.5265 GB, free: 77.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000695/1.293, allocations: 106 kB / 0.5266 GB, free: 77.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003358/1.294, allocations: 49.41 kB / 0.5266 GB, free: 77.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.584e-05/1.294, allocations: 16.8 kB / 0.5266 GB, free: 77.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002214/1.296, allocations: 2.544 MB / 0.5291 GB, free: 74.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.695e-06/1.296, allocations: 6.688 kB / 0.5291 GB, free: 74.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002563/1.299, allocations: 0.9374 MB / 0.53 GB, free: 73.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009823/1.3, allocations: 249.3 kB / 0.5303 GB, free: 73.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002558/1.3, allocations: 23.38 kB / 0.5303 GB, free: 73.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008628/1.301, allocations: 37.67 kB / 0.5303 GB, free: 73.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001979/1.301, allocations: 54.73 kB / 0.5304 GB, free: 73.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-05/1.301, allocations: 21.2 kB / 0.5304 GB, free: 73.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002032/1.303, allocations: 0.7989 MB / 0.5312 GB, free: 73.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.303, allocations: 0 / 0.5312 GB, free: 73.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002709/1.306, allocations: 347.2 kB / 0.5315 GB, free: 73.28 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.0009519/1.307, allocations: 316.5 kB / 0.5318 GB, free: 73.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002914/1.31, allocations: 0.9444 MB / 0.5327 GB, free: 72.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.828e-06/1.31, allocations: 0 / 0.5327 GB, free: 72.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/1.311, allocations: 462.7 kB / 0.5332 GB, free: 72.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004138/1.315, allocations: 314.1 kB / 0.5335 GB, free: 72.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007293/1.322, allocations: 3.135 MB / 0.5365 GB, free: 70.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009483/1.323, allocations: 1.181 MB / 0.5377 GB, free: 69.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004904/1.324, allocations: 91.94 kB / 0.5378 GB, free: 69.46 MB / 378.7 MB Notification: Performance of SimCode: time 1.323e-06/1.324, allocations: 0 / 0.5378 GB, free: 69.46 MB / 378.7 MB Notification: Performance of Templates: time 0.05966/1.384, allocations: 32.22 MB / 0.5692 GB, free: 41.38 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches