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.001161/0.001161, allocations: 179.8 kB / 17.01 MB, free: 5.121 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.733/1.733, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.001048/0.001048, allocations: 80.17 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003056/0.0003056, allocations: 4 kB / 328.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2742, allocations: 47.57 MB / 375.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1547/0.429, allocations: 117.3 MB / 493.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003477/0.4294, allocations: 87.95 kB / 493.2 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4083/0.8378, allocations: 47.1 MB / 0.5277 GB, free: 90.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.8378, allocations: 4 kB / 0.5277 GB, free: 90.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001319/0.838, allocations: 59.78 kB / 0.5277 GB, free: 90.55 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.003931/0.8419, allocations: 2.174 MB / 0.5299 GB, free: 88.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.842, allocations: 8.031 kB / 0.5299 GB, free: 88.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007514/0.8427, allocations: 305 kB / 0.5302 GB, free: 88.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002023/0.8447, allocations: 1.272 MB / 0.5314 GB, free: 86.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002258/0.845, allocations: 272.7 kB / 0.5317 GB, free: 86.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002111/0.8452, allocations: 191.9 kB / 0.5319 GB, free: 86.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003058/0.8483, allocations: 1.921 MB / 0.5337 GB, free: 84.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.702e-05/0.8483, allocations: 11.91 kB / 0.5337 GB, free: 84.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001464/0.8485, allocations: 76 kB / 0.5338 GB, free: 84.19 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.215e-05/0.8485, allocations: 48 kB / 0.5339 GB, free: 84.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003093/0.8516, allocations: 1.649 MB / 0.5355 GB, free: 82.49 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008587/0.8602, allocations: 7.478 MB / 0.5428 GB, free: 74.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002273/0.8625, allocations: 1.304 MB / 0.544 GB, free: 73.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.19e-05/0.8626, allocations: 12.98 kB / 0.5441 GB, free: 73.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.8626, allocations: 43.56 kB / 0.5441 GB, free: 73.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 4.819e-06/0.8627, allocations: 0 / 0.5441 GB, free: 73.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.03231/0.895, allocations: 8.841 MB / 0.5527 GB, free: 64.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.8951, allocations: 94.11 kB / 0.5528 GB, free: 64.26 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002641/0.8977, allocations: 1.227 MB / 0.554 GB, free: 63.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001103/0.8979, allocations: 49.7 kB / 0.5541 GB, free: 62.97 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005736/0.8984, allocations: 0.9786 MB / 0.555 GB, free: 61.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003016/0.8988, allocations: 390.2 kB / 0.5554 GB, free: 61.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.73e-05/0.8989, allocations: 32 kB / 0.5554 GB, free: 61.58 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.899, allocations: 365.9 kB / 0.5558 GB, free: 61.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001726/0.9007, allocations: 0.7847 MB / 0.5565 GB, free: 60.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00201/0.9027, allocations: 1.231 MB / 0.5577 GB, free: 59.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001864/0.9046, allocations: 0.8144 MB / 0.5585 GB, free: 58.19 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.456e-05/0.9047, allocations: 8 kB / 0.5585 GB, free: 58.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004528/0.9092, allocations: 2.167 MB / 0.5607 GB, free: 56 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001389/0.9106, allocations: 5.412 MB / 0.5659 GB, free: 50.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.314e-05/0.9106, allocations: 16 kB / 0.566 GB, free: 50.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002475/0.9109, allocations: 40.86 kB / 0.566 GB, free: 50.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001699/0.9126, allocations: 435.4 kB / 0.5664 GB, free: 49.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009463/0.9136, allocations: 1.299 MB / 0.5677 GB, free: 48.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001835/0.9154, allocations: 179.9 kB / 0.5679 GB, free: 48.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/0.9156, allocations: 64 kB / 0.5679 GB, free: 48.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/0.9156, allocations: 4 kB / 0.5679 GB, free: 48.11 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00377/0.9194, allocations: 1.882 MB / 0.5698 GB, free: 46.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.634e-05/0.9194, allocations: 16 kB / 0.5698 GB, free: 46.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001165/0.9195, allocations: 45.27 kB / 0.5698 GB, free: 46.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/0.9211, allocations: 411.4 kB / 0.5702 GB, free: 45.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007535/0.9219, allocations: 1.307 MB / 0.5715 GB, free: 44.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001751/0.9236, allocations: 143.9 kB / 0.5716 GB, free: 44.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.9238, allocations: 60 kB / 0.5717 GB, free: 44.12 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.001122/0.9249, allocations: 492.5 kB / 0.5722 GB, free: 43.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004056/0.9253, allocations: 165.9 kB / 0.5723 GB, free: 43.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00371/0.929, allocations: 1.643 MB / 0.5739 GB, free: 41.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.9291, allocations: 12 kB / 0.5739 GB, free: 41.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.9291, allocations: 0 / 0.5739 GB, free: 41.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.547e-06/0.9291, allocations: 3.984 kB / 0.5739 GB, free: 41.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007649/0.9367, allocations: 3.973 MB / 0.5778 GB, free: 37.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.886e-05/0.9368, allocations: 8 kB / 0.5778 GB, free: 37.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.9379, allocations: 288 kB / 0.5781 GB, free: 37.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001195/0.938, allocations: 36.84 kB / 0.5781 GB, free: 37.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.366e-05/0.9382, allocations: 39.94 kB / 0.5782 GB, free: 37.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000714/0.9389, allocations: 1.296 MB / 0.5794 GB, free: 35.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.116e-06/0.9389, allocations: 15.94 kB / 0.5794 GB, free: 35.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004405/0.9433, allocations: 2.98 MB / 0.5824 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008638/0.9442, allocations: 339 kB / 0.5827 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004183/0.9446, allocations: 36 kB / 0.5827 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001322/0.9459, allocations: 143.9 kB / 0.5828 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002555/0.9462, allocations: 140.1 kB / 0.583 GB, free: 31.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.907e-05/0.9463, allocations: 44.09 kB / 0.583 GB, free: 31.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001473/0.9478, allocations: 0.9244 MB / 0.5839 GB, free: 30.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9478, allocations: 0 / 0.5839 GB, free: 30.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003494/0.9513, allocations: 0.6914 MB / 0.5846 GB, free: 30.1 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.0007726/0.9521, allocations: 421.2 kB / 0.585 GB, free: 29.72 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006062/0.9582, allocations: 2.973 MB / 0.5879 GB, free: 26.72 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/0.9582, allocations: 7.938 kB / 0.5879 GB, free: 26.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.9597, allocations: 0.7697 MB / 0.5887 GB, free: 25.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001729/0.9614, allocations: 349 kB / 0.589 GB, free: 25.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00728/0.9687, allocations: 4.324 MB / 0.5932 GB, free: 21.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.9698, allocations: 1.388 MB / 0.5946 GB, free: 19.71 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001659/0.9714, allocations: 288.8 kB / 0.5949 GB, free: 19.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003971/0.9718, allocations: 103.4 kB / 0.595 GB, free: 19.32 MB / 378.7 MB Notification: Performance of SimCode: time 1.122e-06/0.9718, allocations: 0 / 0.595 GB, free: 19.32 MB / 378.7 MB Notification: Performance of Templates: time 0.03227/1.004, allocations: 21.47 MB / 0.6159 GB, free: 13.85 MB / 394.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/jenkins/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