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.0009546/0.0009546, allocations: 172.8 kB / 14.1 MB, free: 1.223 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.503/1.503, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008128/0.0008129, allocations: 90.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.218e-05/2.221e-05, allocations: 4 kB / 322.5 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07827/0.07831, allocations: 47.57 MB / 370 MB, free: 1.719 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2836/0.3619, allocations: 94.47 MB / 464.5 MB, free: 15.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.3622, allocations: 78.58 kB / 464.6 MB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1063/0.4685, allocations: 40.79 MB / 0.4935 GB, free: 7.242 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4686, allocations: 0 / 0.4935 GB, free: 7.242 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.425e-05/0.4687, allocations: 39.94 kB / 0.4936 GB, free: 7.203 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.002423/0.4711, allocations: 1.55 MB / 0.4951 GB, free: 5.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.4712, allocations: 12.03 kB / 0.4951 GB, free: 5.578 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007455/0.4719, allocations: 257.5 kB / 0.4953 GB, free: 5.324 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001777/0.4737, allocations: 1.09 MB / 0.4964 GB, free: 4.188 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.495e-05/0.4738, allocations: 119.1 kB / 0.4965 GB, free: 4.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002183/0.474, allocations: 167.9 kB / 0.4967 GB, free: 3.906 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00235/0.4764, allocations: 1.421 MB / 0.4981 GB, free: 2.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.478e-05/0.4765, allocations: 7.906 kB / 0.4981 GB, free: 2.402 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000115/0.4766, allocations: 60 kB / 0.4981 GB, free: 2.344 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.508e-05/0.4766, allocations: 40 kB / 0.4982 GB, free: 2.305 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001562/0.4782, allocations: 0.9203 MB / 0.4991 GB, free: 1.379 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007655/0.4859, allocations: 6.656 MB / 0.5056 GB, free: 10.37 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006157/0.4865, allocations: 364.2 kB / 0.5059 GB, free: 10 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003233/0.4868, allocations: 206.2 kB / 0.5061 GB, free: 9.797 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.786e-05/0.4869, allocations: 8.438 kB / 0.5061 GB, free: 9.789 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004193/0.4873, allocations: 257.6 kB / 0.5064 GB, free: 9.512 MB / 394.7 MB Notification: Performance of pre-optimization done (n=50): time 4.809e-06/0.4873, allocations: 7.922 kB / 0.5064 GB, free: 9.504 MB / 394.7 MB Notification: Performance of matching and sorting (n=56): time 0.002686/0.49, allocations: 1.616 MB / 0.5079 GB, free: 7.824 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.4902, allocations: 192.4 kB / 0.5081 GB, free: 7.594 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001476/0.4916, allocations: 1.065 MB / 0.5092 GB, free: 6.516 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.856e-05/0.4917, allocations: 33.7 kB / 0.5092 GB, free: 6.477 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006498/0.4924, allocations: 0.8711 MB / 0.5101 GB, free: 5.594 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.4925, allocations: 205.2 kB / 0.5102 GB, free: 5.391 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.622e-05/0.4926, allocations: 28 kB / 0.5103 GB, free: 5.363 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.4927, allocations: 350 kB / 0.5106 GB, free: 5.016 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003543/0.4931, allocations: 206.6 kB / 0.5108 GB, free: 4.816 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007498/0.4939, allocations: 0.784 MB / 0.5116 GB, free: 3.746 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005449/0.4944, allocations: 384.6 kB / 0.5119 GB, free: 3.363 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.4944, allocations: 4 kB / 0.5119 GB, free: 3.359 MB / 394.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001737/0.4962, allocations: 1.141 MB / 0.5131 GB, free: 2.199 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.385e-05/0.4962, allocations: 37.7 kB / 0.5131 GB, free: 2.156 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.348e-05/0.4963, allocations: 20.75 kB / 0.5131 GB, free: 2.137 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002391/0.4965, allocations: 73.69 kB / 0.5132 GB, free: 2.059 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008024/0.4973, allocations: 267.5 kB / 0.5134 GB, free: 1.797 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/0.4992, allocations: 2.58 MB / 0.516 GB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009929/0.5002, allocations: 71.88 kB / 0.516 GB, free: 14.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.66e-05/0.5003, allocations: 64 kB / 0.5161 GB, free: 14.82 MB / 410.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 () * 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.0001986/0.5005, allocations: 197.3 kB / 0.5163 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/0.5006, allocations: 134.3 kB / 0.5164 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009556/0.5016, allocations: 0.5096 MB / 0.5169 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.5016, allocations: 11.95 kB / 0.5169 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.5016, allocations: 0 / 0.5169 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.5016, allocations: 7.984 kB / 0.5169 GB, free: 13.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002728/0.5044, allocations: 1.889 MB / 0.5188 GB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.5044, allocations: 8.062 kB / 0.5188 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004479/0.5049, allocations: 103.8 kB / 0.5189 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000169/0.505, allocations: 53.64 kB / 0.5189 GB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.635e-05/0.5051, allocations: 16 kB / 0.5189 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001612/0.5067, allocations: 2.547 MB / 0.5214 GB, free: 8.938 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.5067, allocations: 4 kB / 0.5214 GB, free: 8.934 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.5081, allocations: 1.075 MB / 0.5225 GB, free: 7.668 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004993/0.5086, allocations: 259.3 kB / 0.5227 GB, free: 7.395 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.5088, allocations: 16 kB / 0.5227 GB, free: 7.379 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005285/0.5093, allocations: 35.97 kB / 0.5228 GB, free: 7.344 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.5094, allocations: 59.83 kB / 0.5228 GB, free: 7.285 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.847e-05/0.5095, allocations: 19.94 kB / 0.5228 GB, free: 7.266 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001159/0.5106, allocations: 0.7897 MB / 0.5236 GB, free: 6.473 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5106, allocations: 0 / 0.5236 GB, free: 6.473 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001287/0.5119, allocations: 344 kB / 0.5239 GB, free: 6.137 MB / 410.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) * 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.0004797/0.5124, allocations: 318 kB / 0.5243 GB, free: 5.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.5138, allocations: 0.8863 MB / 0.5251 GB, free: 4.898 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.5138, allocations: 0 / 0.5251 GB, free: 4.898 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000573/0.5144, allocations: 450.4 kB / 0.5255 GB, free: 4.434 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001253/0.5156, allocations: 309.5 kB / 0.5258 GB, free: 4.133 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00317/0.5188, allocations: 1.902 MB / 0.5277 GB, free: 2.148 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007625/0.5196, allocations: 1.213 MB / 0.5289 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006736/0.5203, allocations: 179.2 kB / 0.5291 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/0.5205, allocations: 87.44 kB / 0.5291 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of SimCode: time 6.01e-07/0.5205, allocations: 0 / 0.5291 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of Templates: time 0.2123/0.7328, allocations: 16.19 MB / 0.5449 GB, free: 106 MB / 410.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