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.00112/0.00112, allocations: 175.5 kB / 16.72 MB, free: 5.082 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.404/1.404, allocations: 205.4 MB / 222.9 MB, free: 8.938 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.0008512/0.0008512, allocations: 86.42 kB / 271.2 MB, free: 8.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003237/0.0003238, allocations: 8 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2421, allocations: 47.57 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01277/0.255, allocations: 13.35 MB / 388.4 MB, free: 34.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0101/0.2651, allocations: 5.326 MB / 393.8 MB, free: 30 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003619/0.2688, allocations: 75.69 kB / 393.8 MB, free: 29.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002919/0.2717, allocations: 0.7844 MB / 394.6 MB, free: 29.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002634/0.2744, allocations: 0.4924 MB / 395.1 MB, free: 28.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001632/0.276, allocations: 475.3 kB / 395.6 MB, free: 28.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003431/0.2795, allocations: 2.488 MB / 398.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001637/0.2811, allocations: 1.127 MB / 399.2 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001192/0.2823, allocations: 0.8008 MB / 400 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008526/0.2832, allocations: 0.8278 MB / 400.8 MB, free: 22.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001867/0.2834, allocations: 100 kB / 400.9 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002471/0.2837, allocations: 96 kB / 401 MB, free: 22.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002512/0.2839, allocations: 342.4 kB / 401.3 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008097/0.2847, allocations: 0.9381 MB / 402.3 MB, free: 21.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001526/0.2863, allocations: 2.446 MB / 404.7 MB, free: 18.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.2863, allocations: 0 / 404.7 MB, free: 18.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.2863, allocations: 0 / 404.7 MB, free: 18.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.813e-05/0.2864, allocations: 0 / 404.7 MB, free: 18.94 MB / 298.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.003333/0.2897, allocations: 2.112 MB / 406.8 MB, free: 16.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.2898, allocations: 8.031 kB / 406.8 MB, free: 16.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003282/0.2901, allocations: 257.9 kB / 407.1 MB, free: 16.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001599/0.2917, allocations: 1.233 MB / 408.3 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002205/0.2919, allocations: 261.3 kB / 408.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001968/0.2921, allocations: 196 kB / 408.8 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002958/0.2951, allocations: 1.938 MB / 410.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.726e-05/0.2952, allocations: 4 kB / 410.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001316/0.2953, allocations: 76 kB / 410.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.578e-05/0.2953, allocations: 48 kB / 410.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003033/0.2984, allocations: 1.626 MB / 412.5 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008359/0.3068, allocations: 7.297 MB / 419.8 MB, free: 3.391 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002196/0.309, allocations: 1.253 MB / 421 MB, free: 2.055 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008585/0.3099, allocations: 488.1 kB / 421.5 MB, free: 1.578 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.61e-05/0.31, allocations: 13 kB / 421.5 MB, free: 1.566 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.31, allocations: 43.5 kB / 421.6 MB, free: 1.516 MB / 298.7 MB Notification: Performance of pre-optimization done (n=83): time 3.516e-06/0.31, allocations: 0 / 421.6 MB, free: 1.516 MB / 298.7 MB Notification: Performance of matching and sorting (n=110): time 0.0296/0.3396, allocations: 8.818 MB / 430.4 MB, free: 8.566 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.3397, allocations: 68.34 kB / 430.4 MB, free: 8.488 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00176/0.3414, allocations: 1.232 MB / 431.7 MB, free: 7.246 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001241/0.3416, allocations: 45.7 kB / 431.7 MB, free: 7.195 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006951/0.3423, allocations: 0.99 MB / 432.7 MB, free: 6.191 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003649/0.3427, allocations: 390.3 kB / 433.1 MB, free: 5.805 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.037e-05/0.3428, allocations: 36 kB / 433.1 MB, free: 5.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.3429, allocations: 365.8 kB / 433.5 MB, free: 5.406 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001846/0.3448, allocations: 0.7652 MB / 434.2 MB, free: 4.641 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002149/0.347, allocations: 1.234 MB / 435.5 MB, free: 3.203 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003814/0.3508, allocations: 1.891 MB / 437.4 MB, free: 1.105 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/0.3508, allocations: 4 kB / 437.4 MB, free: 1.102 MB / 314.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.00489/0.3557, allocations: 2.227 MB / 439.6 MB, free: 14.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000395/0.3561, allocations: 0.5194 MB / 440.1 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.524e-05/0.3562, allocations: 20 kB / 440.1 MB, free: 14.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001726/0.3564, allocations: 44.78 kB / 440.2 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/0.3582, allocations: 439.4 kB / 440.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001033/0.3592, allocations: 1.276 MB / 441.9 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.3607, allocations: 171.9 kB / 442.1 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001317/0.3608, allocations: 71.97 kB / 442.1 MB, free: 11.97 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.3609, allocations: 4 kB / 442.1 MB, free: 11.97 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00412/0.365, allocations: 1.954 MB / 444.1 MB, free: 9.992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.863e-05/0.365, allocations: 16 kB / 444.1 MB, free: 9.977 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001088/0.3652, allocations: 49.28 kB / 444.1 MB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001621/0.3668, allocations: 419.3 kB / 444.6 MB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009831/0.3678, allocations: 1.28 MB / 445.8 MB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.3692, allocations: 140 kB / 446 MB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/0.3693, allocations: 64 kB / 446 MB, free: 7.902 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 (kinematicPTP.moving[1],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 (196): * Single equations (assignments): 195 * 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.001023/0.3703, allocations: 487 kB / 446.5 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002681/0.3706, allocations: 162 kB / 446.7 MB, free: 7.258 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003947/0.3746, allocations: 1.679 MB / 448.3 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.3746, allocations: 12 kB / 448.4 MB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.3746, allocations: 0 / 448.4 MB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.3746, allocations: 7.969 kB / 448.4 MB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007791/0.3824, allocations: 3.916 MB / 452.3 MB, free: 1.395 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-05/0.3825, allocations: 20.81 kB / 452.3 MB, free: 1.375 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/0.3837, allocations: 291.6 kB / 452.6 MB, free: 1.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001032/0.3838, allocations: 28.86 kB / 452.6 MB, free: 1.059 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.18e-05/0.3839, allocations: 35.98 kB / 452.6 MB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009568/0.3849, allocations: 1.28 MB / 453.9 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-05/0.3849, allocations: 15.94 kB / 453.9 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004663/0.3896, allocations: 2.374 MB / 456.3 MB, free: 13.06 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006272/0.3902, allocations: 299.1 kB / 456.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000277/0.3905, allocations: 39.98 kB / 456.7 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.3916, allocations: 135.8 kB / 456.8 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000258/0.3919, allocations: 136.1 kB / 456.9 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.474e-05/0.392, allocations: 40 kB / 457 MB, free: 12.4 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001291/0.3933, allocations: 0.7986 MB / 457.8 MB, free: 11.6 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3933, allocations: 0 / 457.8 MB, free: 11.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002092/0.3954, allocations: 0.6133 MB / 458.4 MB, free: 10.99 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.w,speedSensor.flange.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 108 * 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.0002412/0.3957, allocations: 146.8 kB / 458.5 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006236/0.4019, allocations: 2.935 MB / 461.4 MB, free: 7.883 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/0.402, allocations: 0 / 461.4 MB, free: 7.883 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001767/0.4037, allocations: 0.7537 MB / 462.2 MB, free: 7.117 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003533/0.4073, allocations: 328.8 kB / 462.5 MB, free: 6.805 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007296/0.4146, allocations: 4.366 MB / 466.9 MB, free: 2.27 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001117/0.4158, allocations: 1.353 MB / 468.2 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006103/0.4164, allocations: 111.4 kB / 468.3 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of SimCode: time 7.22e-07/0.4164, allocations: 0 / 468.3 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of Templates: time 0.04107/0.4575, allocations: 30.64 MB / 499 MB, free: 2.094 MB / 378.7 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/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_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches