Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001702/0.001702, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.56/1.56, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009843/0.0009844, allocations: 89.98 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000248/0.0002481, allocations: 4 kB / 351.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2568, allocations: 50.4 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3552/0.6121, allocations: 118.2 MB / 0.5075 GB, free: 50.37 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002834/0.6124, allocations: 88 kB / 0.5076 GB, free: 50.37 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1352/0.7476, allocations: 47.28 MB / 0.5538 GB, free: 39.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.7477, allocations: 0 / 0.5538 GB, free: 39.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001383/0.7478, allocations: 51.06 kB / 0.5538 GB, free: 39.67 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.004431/0.7523, allocations: 2.187 MB / 0.5559 GB, free: 38.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.7523, allocations: 11.72 kB / 0.5559 GB, free: 38.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009107/0.7532, allocations: 303.5 kB / 0.5562 GB, free: 38.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002532/0.7558, allocations: 1.256 MB / 0.5575 GB, free: 37.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002403/0.756, allocations: 259.9 kB / 0.5577 GB, free: 37.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002935/0.7563, allocations: 191.7 kB / 0.5579 GB, free: 37.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003427/0.7598, allocations: 1.922 MB / 0.5598 GB, free: 36.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.844e-05/0.7599, allocations: 11.08 kB / 0.5598 GB, free: 36.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001461/0.76, allocations: 79.34 kB / 0.5599 GB, free: 36.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.226e-05/0.76, allocations: 54.3 kB / 0.5599 GB, free: 36.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003316/0.7634, allocations: 1.653 MB / 0.5615 GB, free: 36.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01024/0.7736, allocations: 7.48 MB / 0.5688 GB, free: 32.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002362/0.776, allocations: 1.295 MB / 0.5701 GB, free: 31.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.276e-05/0.7761, allocations: 16.22 kB / 0.5701 GB, free: 31.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.7762, allocations: 42.69 kB / 0.5701 GB, free: 31.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 4.318e-06/0.7762, allocations: 3.984 kB / 0.5702 GB, free: 31.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.03181/0.808, allocations: 8.837 MB / 0.5788 GB, free: 24.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.8081, allocations: 90.11 kB / 0.5789 GB, free: 24.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00239/0.8105, allocations: 1.21 MB / 0.58 GB, free: 23.26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001655/0.8107, allocations: 45.7 kB / 0.5801 GB, free: 23.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005877/0.8113, allocations: 0.9825 MB / 0.5811 GB, free: 22.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003297/0.8116, allocations: 390.4 kB / 0.5814 GB, free: 21.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.8117, allocations: 32 kB / 0.5815 GB, free: 21.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.754e-05/0.8118, allocations: 361.9 kB / 0.5818 GB, free: 21.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001746/0.8136, allocations: 0.7847 MB / 0.5826 GB, free: 20.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001927/0.8155, allocations: 1.227 MB / 0.5838 GB, free: 19.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001781/0.8173, allocations: 0.8261 MB / 0.5846 GB, free: 18.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/0.8173, allocations: 4 kB / 0.5846 GB, free: 18.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004615/0.822, allocations: 2.171 MB / 0.5867 GB, free: 16.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001061/0.8231, allocations: 5.41 MB / 0.592 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.75e-05/0.8231, allocations: 15.95 kB / 0.592 GB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002129/0.8233, allocations: 40.86 kB / 0.592 GB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001744/0.8251, allocations: 439.4 kB / 0.5925 GB, free: 10 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008249/0.8259, allocations: 1.307 MB / 0.5937 GB, free: 8.562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001934/0.8279, allocations: 171.9 kB / 0.5939 GB, free: 8.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001513/0.828, allocations: 64 kB / 0.594 GB, free: 8.332 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.918e-06/0.828, allocations: 7.938 kB / 0.594 GB, free: 8.324 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003684/0.8317, allocations: 1.883 MB / 0.5958 GB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.402e-05/0.8318, allocations: 16 kB / 0.5958 GB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001187/0.8319, allocations: 36.86 kB / 0.5959 GB, free: 6.383 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/0.8335, allocations: 411.6 kB / 0.5962 GB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007191/0.8342, allocations: 1.308 MB / 0.5975 GB, free: 4.539 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.8359, allocations: 148 kB / 0.5977 GB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/0.8361, allocations: 60 kB / 0.5977 GB, free: 4.336 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.001197/0.8373, allocations: 485.3 kB / 0.5982 GB, free: 3.852 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005461/0.8378, allocations: 162 kB / 0.5983 GB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003859/0.8417, allocations: 1.639 MB / 0.5999 GB, free: 2.035 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.8417, allocations: 12 kB / 0.5999 GB, free: 2.023 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.8418, allocations: 0 / 0.5999 GB, free: 2.023 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.8418, allocations: 3.984 kB / 0.6 GB, free: 2.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009058/0.8508, allocations: 3.961 MB / 0.6038 GB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.488e-05/0.8509, allocations: 15.98 kB / 0.6038 GB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/0.8522, allocations: 296.4 kB / 0.6041 GB, free: 13.56 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001554/0.8523, allocations: 36.84 kB / 0.6042 GB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.8525, allocations: 32 kB / 0.6042 GB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/0.8536, allocations: 1.299 MB / 0.6055 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.266e-05/0.8536, allocations: 15.94 kB / 0.6055 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005578/0.8592, allocations: 2.987 MB / 0.6084 GB, free: 8.609 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/0.8605, allocations: 331 kB / 0.6087 GB, free: 8.266 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007235/0.8613, allocations: 39.94 kB / 0.6087 GB, free: 8.227 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001846/0.8631, allocations: 155.8 kB / 0.6089 GB, free: 8.074 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000388/0.8636, allocations: 128.2 kB / 0.609 GB, free: 7.949 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.8637, allocations: 40 kB / 0.609 GB, free: 7.91 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002439/0.8661, allocations: 0.9124 MB / 0.6099 GB, free: 7 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.8662, allocations: 0 / 0.6099 GB, free: 7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003861/0.87, allocations: 0.6952 MB / 0.6106 GB, free: 6.305 MB / 394.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.0008917/0.871, allocations: 419.2 kB / 0.611 GB, free: 5.891 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006929/0.8779, allocations: 2.966 MB / 0.6139 GB, free: 2.898 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/0.878, allocations: 0 / 0.6139 GB, free: 2.898 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001849/0.8798, allocations: 0.781 MB / 0.6147 GB, free: 2.109 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002394/0.8822, allocations: 339.5 kB / 0.615 GB, free: 1.785 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008709/0.891, allocations: 4.317 MB / 0.6192 GB, free: 13.31 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001456/0.8925, allocations: 1.384 MB / 0.6206 GB, free: 11.89 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002204/0.8947, allocations: 292.8 kB / 0.6208 GB, free: 11.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005919/0.8953, allocations: 103.4 kB / 0.6209 GB, free: 11.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.302e-06/0.8953, allocations: 0 / 0.6209 GB, free: 11.5 MB / 410.7 MB Notification: Performance of Templates: time 0.04609/0.9414, allocations: 21.47 MB / 0.6419 GB, free: 6.188 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches