Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.003363/0.003363, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.033/2.033, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00112/0.00112, allocations: 96.83 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.814e-05/2.838e-05, allocations: 4 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3313, allocations: 47.56 MB / 362.3 MB, free: 45.88 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1865/0.5179, allocations: 116.6 MB / 478.9 MB, free: 1.66 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003198/0.5183, allocations: 87.95 kB / 479 MB, free: 1.574 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4756/0.9939, allocations: 46.23 MB / 0.5129 GB, free: 103.1 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.9939, allocations: 0 / 0.5129 GB, free: 103.1 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002257/0.9942, allocations: 51.25 kB / 0.513 GB, free: 103.1 MB / 395.1 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.006791/1.001, allocations: 1.936 MB / 0.5149 GB, free: 102.1 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/1.001, allocations: 9.125 kB / 0.5149 GB, free: 102.1 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00175/1.003, allocations: 298.5 kB / 0.5152 GB, free: 102 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004219/1.007, allocations: 1.264 MB / 0.5164 GB, free: 101.6 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004093/1.008, allocations: 193.7 kB / 0.5166 GB, free: 101.5 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00054/1.008, allocations: 119 kB / 0.5167 GB, free: 101.5 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004423/1.013, allocations: 1.267 MB / 0.5179 GB, free: 101.5 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004627/1.017, allocations: 1.507 MB / 0.5194 GB, free: 101.3 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.605e-05/1.017, allocations: 4.719 kB / 0.5194 GB, free: 101.3 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002138/1.018, allocations: 0 / 0.5194 GB, free: 101.3 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.226e-05/1.018, allocations: 46 kB / 0.5195 GB, free: 101.3 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01549/1.033, allocations: 7.138 MB / 0.5264 GB, free: 97.85 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002807/1.036, allocations: 1.108 MB / 0.5275 GB, free: 97.17 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008448/1.037, allocations: 340.1 kB / 0.5278 GB, free: 97.03 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.673e-05/1.037, allocations: 12.31 kB / 0.5278 GB, free: 97.02 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/1.037, allocations: 54.98 kB / 0.5279 GB, free: 96.97 MB / 395.1 MB Notification: Performance of pre-optimization done (n=84): time 4.058e-06/1.037, allocations: 0 / 0.5279 GB, free: 96.97 MB / 395.1 MB Notification: Performance of matching and sorting (n=111): time 0.01663/1.054, allocations: 4.38 MB / 0.5322 GB, free: 95 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/1.054, allocations: 97.52 kB / 0.5323 GB, free: 94.9 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002357/1.056, allocations: 1.014 MB / 0.5333 GB, free: 94.44 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002811/1.056, allocations: 29.64 kB / 0.5333 GB, free: 94.41 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006824/1.057, allocations: 0.9688 MB / 0.5342 GB, free: 93.6 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004927/1.058, allocations: 372.3 kB / 0.5346 GB, free: 93.31 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001475/1.058, allocations: 7.344 kB / 0.5346 GB, free: 93.31 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/1.058, allocations: 369.1 kB / 0.5349 GB, free: 92.97 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001304/1.059, allocations: 0.5147 MB / 0.5355 GB, free: 92.71 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001607/1.061, allocations: 0.9392 MB / 0.5364 GB, free: 91.92 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/1.062, allocations: 0.5494 MB / 0.5369 GB, free: 91.66 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-05/1.062, allocations: 2.906 kB / 0.5369 GB, free: 91.66 MB / 395.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003688/1.066, allocations: 1.443 MB / 0.5383 GB, free: 91.04 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001006/1.067, allocations: 5.323 MB / 0.5435 GB, free: 85.36 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.045e-05/1.067, allocations: 13.75 kB / 0.5435 GB, free: 85.36 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002743/1.068, allocations: 44.11 kB / 0.5436 GB, free: 85.34 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003538/1.071, allocations: 438.3 kB / 0.544 GB, free: 85.3 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009839/1.072, allocations: 1.251 MB / 0.5452 GB, free: 84.06 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002901/1.075, allocations: 135.6 kB / 0.5453 GB, free: 84.05 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002879/1.075, allocations: 72.36 kB / 0.5454 GB, free: 84.04 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/1.075, allocations: 3.781 kB / 0.5454 GB, free: 84.04 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003403/1.079, allocations: 1.314 MB / 0.5467 GB, free: 83.49 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-05/1.079, allocations: 12.81 kB / 0.5467 GB, free: 83.49 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000138/1.079, allocations: 41.59 kB / 0.5467 GB, free: 83.48 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00327/1.082, allocations: 416.1 kB / 0.5471 GB, free: 83.44 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008688/1.083, allocations: 1.24 MB / 0.5484 GB, free: 82.19 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00205/1.085, allocations: 110.5 kB / 0.5485 GB, free: 82.18 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001947/1.086, allocations: 68.38 kB / 0.5485 GB, free: 82.17 MB / 395.1 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 () * 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.0004415/1.086, allocations: 151.7 kB / 0.5487 GB, free: 82.03 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004999/1.087, allocations: 153.4 kB / 0.5488 GB, free: 81.95 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002836/1.089, allocations: 1.079 MB / 0.5499 GB, free: 81.46 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/1.089, allocations: 10.47 kB / 0.5499 GB, free: 81.46 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/1.089, allocations: 5.312 kB / 0.5499 GB, free: 81.46 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.596e-05/1.09, allocations: 8.781 kB / 0.5499 GB, free: 81.46 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009656/1.099, allocations: 3.234 MB / 0.5531 GB, free: 79.84 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.775e-05/1.099, allocations: 11.66 kB / 0.5531 GB, free: 79.83 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002387/1.102, allocations: 290 kB / 0.5533 GB, free: 79.8 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001897/1.102, allocations: 34.98 kB / 0.5534 GB, free: 79.79 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000194/1.102, allocations: 17.83 kB / 0.5534 GB, free: 79.79 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008935/1.103, allocations: 1.239 MB / 0.5546 GB, free: 78.55 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.325e-05/1.103, allocations: 13.97 kB / 0.5546 GB, free: 78.54 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003991/1.107, allocations: 2.266 MB / 0.5568 GB, free: 76.54 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001192/1.108, allocations: 322.1 kB / 0.5571 GB, free: 76.3 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004763/1.109, allocations: 17.53 kB / 0.5572 GB, free: 76.3 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00216/1.111, allocations: 135.6 kB / 0.5573 GB, free: 76.29 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003939/1.111, allocations: 134.7 kB / 0.5574 GB, free: 76.25 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/1.112, allocations: 39.59 kB / 0.5574 GB, free: 76.25 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001721/1.113, allocations: 0.7378 MB / 0.5582 GB, free: 75.91 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.172e-06/1.113, allocations: 4 kB / 0.5582 GB, free: 75.9 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.004141/1.117, allocations: 0.5791 MB / 0.5587 GB, free: 75.88 MB / 395.1 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 () * 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.0008921/1.118, allocations: 379.8 kB / 0.5591 GB, free: 75.7 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.005855/1.124, allocations: 2.185 MB / 0.5612 GB, free: 74.21 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-05/1.124, allocations: 0 / 0.5612 GB, free: 74.21 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/1.126, allocations: 0.5322 MB / 0.5618 GB, free: 73.68 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00295/1.129, allocations: 295.2 kB / 0.562 GB, free: 73.46 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00828/1.137, allocations: 2.732 MB / 0.5647 GB, free: 70.8 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001069/1.138, allocations: 1.384 MB / 0.5661 GB, free: 69.66 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009829/1.139, allocations: 115.1 kB / 0.5662 GB, free: 69.55 MB / 395.1 MB Notification: Performance of SimCode: time 9.92e-07/1.139, allocations: 4 kB / 0.5662 GB, free: 69.54 MB / 395.1 MB Notification: Performance of Templates: time 0.07237/1.212, allocations: 30.81 MB / 0.5963 GB, free: 41.73 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches