Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001769/0.001769, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 226.5 MB / 245.4 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008784/0.0008785, allocations: 99.34 kB / 297.5 MB, free: 6.867 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002366/0.0002367, allocations: 4 kB / 358.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2164, allocations: 51.27 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3183/0.5347, allocations: 120.1 MB / 0.5171 GB, free: 96.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000402/0.5352, allocations: 87.89 kB / 0.5171 GB, free: 96.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1134/0.6487, allocations: 47.17 MB / 0.5632 GB, free: 50.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.6487, allocations: 0 / 0.5632 GB, free: 50.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002055/0.6489, allocations: 55.98 kB / 0.5633 GB, free: 50.02 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.005068/0.654, allocations: 2.156 MB / 0.5654 GB, free: 47.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.6541, allocations: 8.031 kB / 0.5654 GB, free: 47.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001088/0.6552, allocations: 302 kB / 0.5657 GB, free: 47.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002819/0.658, allocations: 1.311 MB / 0.567 GB, free: 46.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002799/0.6583, allocations: 261.3 kB / 0.5672 GB, free: 45.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000465/0.6588, allocations: 192.6 kB / 0.5674 GB, free: 45.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00421/0.663, allocations: 1.948 MB / 0.5693 GB, free: 43.67 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.181e-05/0.6631, allocations: 4 kB / 0.5693 GB, free: 43.67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001865/0.6633, allocations: 76 kB / 0.5694 GB, free: 43.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.249e-05/0.6633, allocations: 48 kB / 0.5694 GB, free: 43.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003502/0.6668, allocations: 1.649 MB / 0.571 GB, free: 41.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01097/0.6778, allocations: 7.468 MB / 0.5783 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002333/0.6802, allocations: 1.304 MB / 0.5796 GB, free: 32.72 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009638/0.6812, allocations: 499.6 kB / 0.5801 GB, free: 32.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.111e-05/0.6813, allocations: 9 kB / 0.5801 GB, free: 32.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.6813, allocations: 43.56 kB / 0.5801 GB, free: 32.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.665e-06/0.6813, allocations: 0 / 0.5801 GB, free: 32.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.0283/0.7096, allocations: 8.847 MB / 0.5888 GB, free: 23.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.7097, allocations: 90.11 kB / 0.5888 GB, free: 23.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002303/0.712, allocations: 1.382 MB / 0.5902 GB, free: 21.71 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.7122, allocations: 45.7 kB / 0.5902 GB, free: 21.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005113/0.7127, allocations: 0.9825 MB / 0.5912 GB, free: 20.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000251/0.7129, allocations: 389.3 kB / 0.5916 GB, free: 20.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.245e-05/0.713, allocations: 32 kB / 0.5916 GB, free: 20.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.239e-05/0.7131, allocations: 361.9 kB / 0.5919 GB, free: 19.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001672/0.7148, allocations: 0.7847 MB / 0.5927 GB, free: 19.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001826/0.7166, allocations: 1.231 MB / 0.5939 GB, free: 17.69 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003307/0.72, allocations: 1.887 MB / 0.5957 GB, free: 15.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/0.72, allocations: 7.938 kB / 0.5958 GB, free: 15.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004325/0.7243, allocations: 2.163 MB / 0.5979 GB, free: 13.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002765/0.7246, allocations: 0.4919 MB / 0.5983 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.185e-05/0.7247, allocations: 12 kB / 0.5984 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001898/0.7249, allocations: 40.86 kB / 0.5984 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/0.7265, allocations: 443.3 kB / 0.5988 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007336/0.7272, allocations: 1.307 MB / 0.6001 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/0.7289, allocations: 172 kB / 0.6003 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000127/0.729, allocations: 60 kB / 0.6003 GB, free: 10.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.015e-06/0.7291, allocations: 4 kB / 0.6003 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003564/0.7326, allocations: 1.883 MB / 0.6022 GB, free: 8.703 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.958e-05/0.7327, allocations: 15.94 kB / 0.6022 GB, free: 8.688 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001011/0.7328, allocations: 44.78 kB / 0.6022 GB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001479/0.7343, allocations: 411.5 kB / 0.6026 GB, free: 8.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006041/0.7349, allocations: 1.303 MB / 0.6039 GB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001398/0.7363, allocations: 144 kB / 0.604 GB, free: 6.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/0.7364, allocations: 60 kB / 0.6041 GB, free: 6.602 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.0008654/0.7373, allocations: 480.6 kB / 0.6045 GB, free: 6.121 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003091/0.7376, allocations: 166 kB / 0.6047 GB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003458/0.7411, allocations: 1.639 MB / 0.6063 GB, free: 4.305 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.7411, allocations: 12 kB / 0.6063 GB, free: 4.293 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.7411, allocations: 0 / 0.6063 GB, free: 4.293 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.7411, allocations: 3.984 kB / 0.6063 GB, free: 4.289 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006719/0.7478, allocations: 3.965 MB / 0.6102 GB, free: 136 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.7479, allocations: 16 kB / 0.6102 GB, free: 120 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/0.749, allocations: 292.4 kB / 0.6105 GB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001087/0.7491, allocations: 44.66 kB / 0.6105 GB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.629e-05/0.7492, allocations: 39.98 kB / 0.6106 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008969/0.7501, allocations: 1.284 MB / 0.6118 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.124e-05/0.7502, allocations: 15.94 kB / 0.6118 GB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004837/0.755, allocations: 2.366 MB / 0.6141 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007537/0.7558, allocations: 331 kB / 0.6145 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003865/0.7562, allocations: 35.98 kB / 0.6145 GB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001305/0.7575, allocations: 147.9 kB / 0.6146 GB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002735/0.7578, allocations: 132.1 kB / 0.6148 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.141e-05/0.7579, allocations: 44 kB / 0.6148 GB, free: 11.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001828/0.7597, allocations: 0.9124 MB / 0.6157 GB, free: 10.19 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7597, allocations: 0 / 0.6157 GB, free: 10.19 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00264/0.7624, allocations: 0.6874 MB / 0.6164 GB, free: 9.504 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.0006839/0.7631, allocations: 451.7 kB / 0.6168 GB, free: 9.059 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006479/0.7696, allocations: 2.972 MB / 0.6197 GB, free: 6.066 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/0.7696, allocations: 5.938 kB / 0.6197 GB, free: 6.062 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001685/0.7713, allocations: 0.7693 MB / 0.6204 GB, free: 5.277 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003913/0.7752, allocations: 349.4 kB / 0.6208 GB, free: 4.938 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007623/0.7829, allocations: 4.306 MB / 0.625 GB, free: 492 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/0.7841, allocations: 1.345 MB / 0.6263 GB, free: 15.11 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001808/0.7859, allocations: 284.9 kB / 0.6266 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004361/0.7863, allocations: 107.4 kB / 0.6267 GB, free: 14.72 MB / 410.7 MB Notification: Performance of SimCode: time 6.51e-07/0.7864, allocations: 0 / 0.6267 GB, free: 14.72 MB / 410.7 MB Notification: Performance of Templates: time 0.03879/0.8252, allocations: 21.73 MB / 0.6479 GB, free: 9.117 MB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches