Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007538/0.0007537, allocations: 88.14 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.717e-06/8.737e-06, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0858/0.08582, allocations: 50.42 MB / 387.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2897/0.3756, allocations: 98.62 MB / 486.1 MB, free: 12.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.3759, allocations: 87.94 kB / 486.2 MB, free: 12.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0666/0.4425, allocations: 27.15 MB / 0.5013 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4425, allocations: 0 / 0.5013 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.819e-05/0.4426, allocations: 32.88 kB / 0.5013 GB, free: 0.7656 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001647/0.4442, allocations: 1.147 MB / 0.5024 GB, free: 15.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.4443, allocations: 11.97 kB / 0.5025 GB, free: 15.56 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006024/0.4449, allocations: 190.3 kB / 0.5026 GB, free: 15.37 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001403/0.4463, allocations: 0.8476 MB / 0.5035 GB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.4463, allocations: 28 kB / 0.5035 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.4464, allocations: 63.91 kB / 0.5035 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009249/0.4474, allocations: 0.5234 MB / 0.5041 GB, free: 13.87 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.4486, allocations: 0.7663 MB / 0.5048 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.031e-05/0.4486, allocations: 7.938 kB / 0.5048 GB, free: 13.06 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.628e-05/0.4487, allocations: 0 / 0.5048 GB, free: 13.06 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/0.4487, allocations: 24 kB / 0.5048 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004475/0.4532, allocations: 3.976 MB / 0.5087 GB, free: 8.832 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006919/0.4539, allocations: 331.4 kB / 0.509 GB, free: 8.5 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001883/0.4541, allocations: 138.8 kB / 0.5092 GB, free: 8.363 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.222e-05/0.4542, allocations: 4 kB / 0.5092 GB, free: 8.359 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.973e-05/0.4542, allocations: 42.5 kB / 0.5092 GB, free: 8.309 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 1.563e-06/0.4542, allocations: 0 / 0.5092 GB, free: 8.309 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.001399/0.4556, allocations: 0.9898 MB / 0.5102 GB, free: 7.262 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.4556, allocations: 85.11 kB / 0.5103 GB, free: 7.16 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000741/0.4564, allocations: 0.6373 MB / 0.5109 GB, free: 6.516 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/0.4564, allocations: 25.7 kB / 0.5109 GB, free: 6.484 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003438/0.4568, allocations: 0.5952 MB / 0.5115 GB, free: 5.879 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.188e-05/0.4569, allocations: 142 kB / 0.5116 GB, free: 5.738 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.012e-05/0.4569, allocations: 0 / 0.5116 GB, free: 5.738 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.264e-05/0.457, allocations: 330 kB / 0.5119 GB, free: 5.41 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.4572, allocations: 129.6 kB / 0.5121 GB, free: 5.285 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003551/0.4576, allocations: 450 kB / 0.5125 GB, free: 4.699 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003001/0.4579, allocations: 207.8 kB / 0.5127 GB, free: 4.496 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/0.4579, allocations: 4 kB / 0.5127 GB, free: 4.492 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0008835/0.4588, allocations: 0.6143 MB / 0.5133 GB, free: 3.867 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00117/0.46, allocations: 4.098 MB / 0.5173 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.46, allocations: 8 kB / 0.5173 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001234/0.4601, allocations: 36.86 kB / 0.5173 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005503/0.4607, allocations: 163.7 kB / 0.5175 GB, free: 15.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000763/0.4614, allocations: 1.24 MB / 0.5187 GB, free: 13.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004342/0.4619, allocations: 20.06 kB / 0.5187 GB, free: 13.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.272e-05/0.4619, allocations: 39.98 kB / 0.5188 GB, free: 13.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.723e-06/0.462, allocations: 4 kB / 0.5188 GB, free: 13.83 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007331/0.4627, allocations: 0.4893 MB / 0.5192 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.4627, allocations: 12 kB / 0.5193 GB, free: 13.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.718e-05/0.4628, allocations: 40.78 kB / 0.5193 GB, free: 13.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005115/0.4633, allocations: 167.7 kB / 0.5195 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006947/0.464, allocations: 1.241 MB / 0.5207 GB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004056/0.4644, allocations: 23.92 kB / 0.5207 GB, free: 11.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.292e-05/0.4645, allocations: 39.94 kB / 0.5207 GB, free: 11.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000119/0.4646, allocations: 138.6 kB / 0.5209 GB, free: 11.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.4647, allocations: 86.88 kB / 0.5209 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005571/0.4653, allocations: 355 kB / 0.5213 GB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.4653, allocations: 4 kB / 0.5213 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.4653, allocations: 7.875 kB / 0.5213 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.4653, allocations: 0 / 0.5213 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001384/0.4667, allocations: 1.145 MB / 0.5224 GB, free: 9.891 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.4667, allocations: 7.984 kB / 0.5224 GB, free: 9.883 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003567/0.4671, allocations: 72.12 kB / 0.5225 GB, free: 9.812 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.989e-05/0.4672, allocations: 24.84 kB / 0.5225 GB, free: 9.785 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.305e-05/0.4672, allocations: 4 kB / 0.5225 GB, free: 9.781 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006836/0.4679, allocations: 1.225 MB / 0.5237 GB, free: 8.438 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.4679, allocations: 0 / 0.5237 GB, free: 8.438 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007496/0.4687, allocations: 0.7172 MB / 0.5244 GB, free: 7.633 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002018/0.4689, allocations: 184.1 kB / 0.5246 GB, free: 7.434 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.003e-05/0.469, allocations: 8 kB / 0.5246 GB, free: 7.426 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003387/0.4693, allocations: 11.98 kB / 0.5246 GB, free: 7.414 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.38e-05/0.4694, allocations: 31.91 kB / 0.5246 GB, free: 7.383 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-05/0.4694, allocations: 16 kB / 0.5247 GB, free: 7.367 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005313/0.47, allocations: 483.1 kB / 0.5251 GB, free: 6.898 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.47, allocations: 0 / 0.5251 GB, free: 6.898 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009688/0.4709, allocations: 319.9 kB / 0.5254 GB, free: 6.586 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003224/0.4713, allocations: 273.1 kB / 0.5257 GB, free: 6.309 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001099/0.4724, allocations: 0.8676 MB / 0.5265 GB, free: 5.422 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4724, allocations: 192 / 0.5265 GB, free: 5.422 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002833/0.4727, allocations: 257.8 kB / 0.5268 GB, free: 5.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008434/0.4735, allocations: 186.6 kB / 0.527 GB, free: 4.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001979/0.4755, allocations: 1.315 MB / 0.5282 GB, free: 3.621 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005181/0.4761, allocations: 1.045 MB / 0.5293 GB, free: 2.547 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007048/0.4768, allocations: 158.8 kB / 0.5294 GB, free: 2.387 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.742e-05/0.4769, allocations: 43.44 kB / 0.5294 GB, free: 2.344 MB / 410.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4769, allocations: 0 / 0.5294 GB, free: 2.344 MB / 410.7 MB Notification: Performance of Templates: time 0.01654/0.4934, allocations: 10.16 MB / 0.5394 GB, free: 8.273 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches