Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|speedController.integrator.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|speedController.integrator.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008814/0.0008817, allocations: 183.5 kB / 18.04 MB, free: 3.641 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.313/1.313, allocations: 205.4 MB / 224.2 MB, free: 9.016 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.0007779/0.0007779, allocations: 89.94 kB / 272.5 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002912/0.0002912, allocations: 11.98 kB / 329.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1916/0.1919, allocations: 47.57 MB / 377 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1183/0.3102, allocations: 117.6 MB / 494.7 MB, free: 10.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/0.3105, allocations: 87.95 kB / 494.8 MB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2386/0.5491, allocations: 46.97 MB / 0.529 GB, free: 90.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5492, allocations: 4 kB / 0.529 GB, free: 90.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001116/0.5493, allocations: 47.91 kB / 0.5291 GB, free: 90.31 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: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.003341/0.5526, allocations: 2.162 MB / 0.5312 GB, free: 88.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.5527, allocations: 8.031 kB / 0.5312 GB, free: 88.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006717/0.5534, allocations: 313.9 kB / 0.5315 GB, free: 87.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.5552, allocations: 1.318 MB / 0.5328 GB, free: 86.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002074/0.5554, allocations: 265.3 kB / 0.533 GB, free: 86.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002003/0.5556, allocations: 188.7 kB / 0.5332 GB, free: 85.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002945/0.5585, allocations: 1.948 MB / 0.5351 GB, free: 83.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.155e-05/0.5586, allocations: 7.984 kB / 0.5351 GB, free: 83.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000134/0.5587, allocations: 79.94 kB / 0.5352 GB, free: 83.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.448e-05/0.5588, allocations: 48 kB / 0.5352 GB, free: 83.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003094/0.5619, allocations: 1.645 MB / 0.5369 GB, free: 82.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008142/0.57, allocations: 7.483 MB / 0.5442 GB, free: 74.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002167/0.5722, allocations: 1.296 MB / 0.5454 GB, free: 73.08 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009094/0.5731, allocations: 0.4998 MB / 0.5459 GB, free: 72.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.688e-05/0.5732, allocations: 9 kB / 0.5459 GB, free: 72.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.5732, allocations: 43.56 kB / 0.546 GB, free: 72.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 3.276e-06/0.5733, allocations: 0 / 0.546 GB, free: 72.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.02699/0.6003, allocations: 8.851 MB / 0.5546 GB, free: 63.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/0.6003, allocations: 90.11 kB / 0.5547 GB, free: 63.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001579/0.6019, allocations: 1.387 MB / 0.556 GB, free: 62.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.729e-05/0.602, allocations: 49.7 kB / 0.5561 GB, free: 62.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004124/0.6024, allocations: 0.9786 MB / 0.5571 GB, free: 61.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/0.6026, allocations: 390.2 kB / 0.5574 GB, free: 60.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.341e-05/0.6027, allocations: 32 kB / 0.5575 GB, free: 60.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.932e-05/0.6028, allocations: 361.9 kB / 0.5578 GB, free: 60.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001638/0.6044, allocations: 0.7847 MB / 0.5586 GB, free: 59.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00174/0.6062, allocations: 1.235 MB / 0.5598 GB, free: 58.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003157/0.6093, allocations: 1.887 MB / 0.5616 GB, free: 55.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/0.6093, allocations: 7.938 kB / 0.5616 GB, free: 55.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00403/0.6134, allocations: 2.167 MB / 0.5637 GB, free: 53.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001583/0.6136, allocations: 499.8 kB / 0.5642 GB, free: 53.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.6136, allocations: 12 kB / 0.5642 GB, free: 53.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001437/0.6137, allocations: 40.84 kB / 0.5643 GB, free: 53.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001582/0.6153, allocations: 439.4 kB / 0.5647 GB, free: 52.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007383/0.6161, allocations: 1.295 MB / 0.5659 GB, free: 51.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.6174, allocations: 179.9 kB / 0.5661 GB, free: 51.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.715e-05/0.6175, allocations: 60 kB / 0.5662 GB, free: 50.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.849e-06/0.6175, allocations: 4 kB / 0.5662 GB, free: 50.95 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003381/0.6209, allocations: 1.875 MB / 0.568 GB, free: 49.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.6209, allocations: 12.47 kB / 0.568 GB, free: 49.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.005e-05/0.621, allocations: 44.84 kB / 0.5681 GB, free: 49.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001451/0.6225, allocations: 419.3 kB / 0.5685 GB, free: 48.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005557/0.6231, allocations: 1.307 MB / 0.5697 GB, free: 47.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001204/0.6243, allocations: 147.9 kB / 0.5699 GB, free: 47.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.463e-05/0.6244, allocations: 63.94 kB / 0.5699 GB, free: 46.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 6 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase,speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 193 * 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.0007798/0.6252, allocations: 488.5 kB / 0.5704 GB, free: 46.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.6254, allocations: 170 kB / 0.5706 GB, free: 46.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003353/0.6287, allocations: 1.635 MB / 0.5722 GB, free: 44.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.6287, allocations: 12 kB / 0.5722 GB, free: 44.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.6288, allocations: 3.984 kB / 0.5722 GB, free: 44.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.6288, allocations: 3.984 kB / 0.5722 GB, free: 44.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006253/0.635, allocations: 3.969 MB / 0.5761 GB, free: 40.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-05/0.6351, allocations: 8 kB / 0.5761 GB, free: 40.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.6362, allocations: 288.1 kB / 0.5763 GB, free: 40.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.359e-05/0.6363, allocations: 48.72 kB / 0.5764 GB, free: 40.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.485e-05/0.6363, allocations: 32 kB / 0.5764 GB, free: 40.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005441/0.6369, allocations: 1.292 MB / 0.5777 GB, free: 38.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.6369, allocations: 11.94 kB / 0.5777 GB, free: 38.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003792/0.6407, allocations: 2.358 MB / 0.58 GB, free: 36.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000446/0.6412, allocations: 338.9 kB / 0.5803 GB, free: 35.83 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001771/0.6414, allocations: 44 kB / 0.5804 GB, free: 35.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009744/0.6423, allocations: 147.9 kB / 0.5805 GB, free: 35.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001935/0.6425, allocations: 132.1 kB / 0.5806 GB, free: 35.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.01e-05/0.6426, allocations: 40 kB / 0.5807 GB, free: 35.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001145/0.6438, allocations: 0.9245 MB / 0.5816 GB, free: 34.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6438, allocations: 0 / 0.5816 GB, free: 34.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001906/0.6457, allocations: 0.6952 MB / 0.5823 GB, free: 33.86 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.phi,loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 109 * 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.0004608/0.6461, allocations: 433.5 kB / 0.5827 GB, free: 33.47 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005257/0.6514, allocations: 2.969 MB / 0.5856 GB, free: 30.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.6514, allocations: 4 kB / 0.5856 GB, free: 30.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001408/0.6528, allocations: 0.7664 MB / 0.5863 GB, free: 29.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003494/0.6564, allocations: 354.7 kB / 0.5867 GB, free: 29.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005229/0.6616, allocations: 4.336 MB / 0.5909 GB, free: 24.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006816/0.6623, allocations: 1.345 MB / 0.5922 GB, free: 23.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001526/0.6638, allocations: 292.8 kB / 0.5925 GB, free: 23.19 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000394/0.6642, allocations: 111.4 kB / 0.5926 GB, free: 23.08 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.6642, allocations: 0 / 0.5926 GB, free: 23.08 MB / 378.7 MB Notification: Performance of Templates: time 0.02997/0.6942, allocations: 21.74 MB / 0.6138 GB, free: 1.355 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches