Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009937/0.0009937, allocations: 183.4 kB / 18.04 MB, free: 3.785 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.354/1.354, allocations: 205.4 MB / 224.2 MB, free: 9.055 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.0007732/0.0007729, allocations: 82.42 kB / 272.5 MB, free: 8.289 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003335/0.0003335, allocations: 12 kB / 329.5 MB, free: 15.3 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1964/0.1967, allocations: 47.57 MB / 377 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1008/0.2976, allocations: 98.51 MB / 475.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/0.2979, allocations: 87.95 kB / 475.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07426/0.3721, allocations: 27.49 MB / 0.4913 GB, free: 2.297 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3722, allocations: 0 / 0.4913 GB, free: 2.297 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.232e-05/0.3723, allocations: 24 kB / 0.4913 GB, free: 2.273 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.002579/0.3749, allocations: 1.3 MB / 0.4926 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.3749, allocations: 12.03 kB / 0.4926 GB, free: 0.9102 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007099/0.3756, allocations: 195.2 kB / 0.4928 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.152/0.5277, allocations: 0.8717 MB / 0.4937 GB, free: 96.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.312e-05/0.5278, allocations: 78.55 kB / 0.4937 GB, free: 96.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003112/0.5281, allocations: 103.3 kB / 0.4938 GB, free: 96.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002315/0.5304, allocations: 0.9372 MB / 0.4948 GB, free: 95.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.582e-05/0.5305, allocations: 5.469 kB / 0.4948 GB, free: 95.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-05/0.5306, allocations: 41.61 kB / 0.4948 GB, free: 95.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.795e-05/0.5306, allocations: 30.38 kB / 0.4948 GB, free: 95.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.5319, allocations: 0.6199 MB / 0.4954 GB, free: 95.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00507/0.537, allocations: 4.166 MB / 0.4995 GB, free: 94.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008747/0.5379, allocations: 372.5 kB / 0.4999 GB, free: 94.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002661/0.5382, allocations: 160.5 kB / 0.5 GB, free: 94.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.5382, allocations: 3.719 kB / 0.5 GB, free: 94.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.673e-05/0.5383, allocations: 40.69 kB / 0.5001 GB, free: 94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.274e-06/0.5383, allocations: 0 / 0.5001 GB, free: 94 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.002272/0.5406, allocations: 1.302 MB / 0.5013 GB, free: 93.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/0.5406, allocations: 81.61 kB / 0.5014 GB, free: 93.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.5418, allocations: 0.8587 MB / 0.5022 GB, free: 93.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.5418, allocations: 36.61 kB / 0.5023 GB, free: 93.17 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003061/0.5421, allocations: 0.5983 MB / 0.5029 GB, free: 92.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.277e-05/0.5422, allocations: 148.9 kB / 0.503 GB, free: 92.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.553e-05/0.5423, allocations: 14.41 kB / 0.503 GB, free: 92.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.633e-05/0.5423, allocations: 338.4 kB / 0.5033 GB, free: 92.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003199/0.5427, allocations: 157.9 kB / 0.5035 GB, free: 92.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004338/0.5431, allocations: 481.3 kB / 0.5039 GB, free: 92.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00088/0.544, allocations: 0.6763 MB / 0.5046 GB, free: 91.78 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/0.544, allocations: 2.75 kB / 0.5046 GB, free: 91.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001241/0.5453, allocations: 0.7377 MB / 0.5053 GB, free: 91.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001366/0.5454, allocations: 394.4 kB / 0.5057 GB, free: 91.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.5454, allocations: 11.66 kB / 0.5057 GB, free: 91.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001381/0.5456, allocations: 42.2 kB / 0.5058 GB, free: 91.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005377/0.5461, allocations: 170.9 kB / 0.5059 GB, free: 91.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006549/0.5468, allocations: 1.289 MB / 0.5072 GB, free: 89.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005916/0.5474, allocations: 37.34 kB / 0.5072 GB, free: 89.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.923e-05/0.5475, allocations: 37.06 kB / 0.5072 GB, free: 89.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.901e-06/0.5475, allocations: 5.188 kB / 0.5073 GB, free: 89.95 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008544/0.5483, allocations: 0.6173 MB / 0.5079 GB, free: 89.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/0.5484, allocations: 14.81 kB / 0.5079 GB, free: 89.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.472e-05/0.5485, allocations: 39.61 kB / 0.5079 GB, free: 89.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004721/0.5489, allocations: 164.6 kB / 0.5081 GB, free: 89.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005917/0.5495, allocations: 1.296 MB / 0.5093 GB, free: 88.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005731/0.5501, allocations: 28.06 kB / 0.5094 GB, free: 88.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.714e-05/0.5502, allocations: 35.16 kB / 0.5094 GB, free: 88.57 MB / 378.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 () * Number of clocked 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.0004919/0.5507, allocations: 350.5 kB / 0.5097 GB, free: 88.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/0.5508, allocations: 88.97 kB / 0.5098 GB, free: 88.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008169/0.5517, allocations: 426.6 kB / 0.5102 GB, free: 88.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.5517, allocations: 7.969 kB / 0.5102 GB, free: 88.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.5517, allocations: 0 / 0.5102 GB, free: 88.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.5517, allocations: 1.688 kB / 0.5102 GB, free: 88.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0018/0.5535, allocations: 1.336 MB / 0.5115 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.5535, allocations: 3.719 kB / 0.5115 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003258/0.5539, allocations: 80.02 kB / 0.5116 GB, free: 87.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.139e-05/0.5539, allocations: 26.03 kB / 0.5116 GB, free: 87.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.499e-05/0.554, allocations: 11.88 kB / 0.5116 GB, free: 87.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005571/0.5545, allocations: 1.267 MB / 0.5129 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.5546, allocations: 3.594 kB / 0.5129 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008258/0.5554, allocations: 0.7036 MB / 0.5136 GB, free: 85.53 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002419/0.5556, allocations: 196.5 kB / 0.5138 GB, free: 85.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.5558, allocations: 14.38 kB / 0.5138 GB, free: 85.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003659/0.5561, allocations: 23.19 kB / 0.5138 GB, free: 85.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.892e-05/0.5562, allocations: 33.73 kB / 0.5138 GB, free: 85.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.5562, allocations: 19.31 kB / 0.5138 GB, free: 85.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005992/0.5568, allocations: 0.5718 MB / 0.5144 GB, free: 85.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5568, allocations: 0 / 0.5144 GB, free: 85.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001136/0.558, allocations: 386.3 kB / 0.5148 GB, free: 85.03 MB / 378.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 () * Number of clocked 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.0003466/0.5583, allocations: 290.8 kB / 0.5151 GB, free: 84.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00127/0.5596, allocations: 0.9601 MB / 0.516 GB, free: 84.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5596, allocations: 0 / 0.516 GB, free: 84.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003156/0.56, allocations: 287.2 kB / 0.5163 GB, free: 84.24 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.5612, allocations: 226.2 kB / 0.5165 GB, free: 84.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002495/0.5637, allocations: 2.209 MB / 0.5186 GB, free: 82.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.5642, allocations: 1.025 MB / 0.5196 GB, free: 82.09 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005516/0.5647, allocations: 126 kB / 0.5198 GB, free: 82.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.5648, allocations: 63.81 kB / 0.5198 GB, free: 82.05 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.5649, allocations: 0 / 0.5198 GB, free: 82.05 MB / 378.7 MB Notification: Performance of Templates: time 0.0181/0.583, allocations: 11.8 MB / 0.5313 GB, free: 81.18 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_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_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches