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.0009625/0.0009626, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008155/0.0008156, allocations: 97.56 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.305e-05/1.308e-05, allocations: 4 kB / 343.7 MB, free: 8.277 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08592/0.08595, allocations: 51.49 MB / 395.2 MB, free: 4.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3211/0.4071, allocations: 119.1 MB / 0.5022 GB, free: 6.535 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.4074, allocations: 86.23 kB / 0.5023 GB, free: 6.492 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.111/0.5184, allocations: 46.18 MB / 0.5474 GB, free: 13.03 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5184, allocations: 0 / 0.5474 GB, free: 13.03 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001105/0.5185, allocations: 51.94 kB / 0.5475 GB, free: 12.98 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 469 * Number of variables: 469 Notification: Performance of Generate backend data structure: time 0.003214/0.5218, allocations: 1.909 MB / 0.5493 GB, free: 11.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.5218, allocations: 12.03 kB / 0.5493 GB, free: 11.01 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007134/0.5225, allocations: 297 kB / 0.5496 GB, free: 10.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002134/0.5247, allocations: 1.237 MB / 0.5508 GB, free: 9.426 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002534/0.525, allocations: 200.8 kB / 0.551 GB, free: 9.211 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002011/0.5252, allocations: 111.9 kB / 0.5511 GB, free: 9.102 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002266/0.5274, allocations: 1.253 MB / 0.5523 GB, free: 7.848 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002622/0.5301, allocations: 1.496 MB / 0.5538 GB, free: 6.297 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.566e-05/0.5301, allocations: 11.91 kB / 0.5538 GB, free: 6.285 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/0.5302, allocations: 0 / 0.5538 GB, free: 6.285 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-05/0.5303, allocations: 44 kB / 0.5539 GB, free: 6.242 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008755/0.539, allocations: 7.041 MB / 0.5607 GB, free: 14.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001751/0.5408, allocations: 1.107 MB / 0.5618 GB, free: 13.72 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004792/0.5413, allocations: 345 kB / 0.5621 GB, free: 13.38 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.271e-05/0.5414, allocations: 8.781 kB / 0.5622 GB, free: 13.38 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.5414, allocations: 39.34 kB / 0.5622 GB, free: 13.32 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 2.435e-06/0.5414, allocations: 0 / 0.5622 GB, free: 13.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.009391/0.5508, allocations: 4.392 MB / 0.5665 GB, free: 8.844 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.139e-05/0.5509, allocations: 90.42 kB / 0.5666 GB, free: 8.738 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00148/0.5524, allocations: 1.004 MB / 0.5675 GB, free: 7.723 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.802e-05/0.5525, allocations: 29.64 kB / 0.5676 GB, free: 7.688 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006016/0.5531, allocations: 0.9736 MB / 0.5685 GB, free: 6.699 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002743/0.5534, allocations: 374.4 kB / 0.5689 GB, free: 6.328 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.174e-05/0.5535, allocations: 0 / 0.5689 GB, free: 6.328 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.5536, allocations: 365.9 kB / 0.5692 GB, free: 5.965 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007923/0.5544, allocations: 0.5117 MB / 0.5697 GB, free: 5.453 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00109/0.5555, allocations: 0.9421 MB / 0.5706 GB, free: 4.328 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008387/0.5563, allocations: 0.545 MB / 0.5712 GB, free: 3.785 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.5564, allocations: 4 kB / 0.5712 GB, free: 3.781 MB / 442.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002377/0.5587, allocations: 1.523 MB / 0.5727 GB, free: 2.246 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2046/0.7633, allocations: 5.357 MB / 0.5779 GB, free: 89.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.48e-05/0.7634, allocations: 13.03 kB / 0.5779 GB, free: 89.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002396/0.7636, allocations: 42.75 kB / 0.578 GB, free: 89.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002058/0.7657, allocations: 439.2 kB / 0.5784 GB, free: 89.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006956/0.7664, allocations: 1.247 MB / 0.5796 GB, free: 88.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001607/0.768, allocations: 146.5 kB / 0.5797 GB, free: 88.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.7681, allocations: 65.23 kB / 0.5798 GB, free: 88.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.231e-06/0.7682, allocations: 3.625 kB / 0.5798 GB, free: 88.32 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00201/0.7702, allocations: 1.31 MB / 0.5811 GB, free: 88.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.7702, allocations: 14.97 kB / 0.5811 GB, free: 88.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.771e-05/0.7703, allocations: 39.95 kB / 0.5811 GB, free: 88.28 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/0.7719, allocations: 416.5 kB / 0.5815 GB, free: 88.28 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005465/0.7725, allocations: 1.258 MB / 0.5828 GB, free: 87.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/0.7739, allocations: 108.5 kB / 0.5829 GB, free: 87.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.555e-05/0.774, allocations: 63.31 kB / 0.5829 GB, free: 87.1 MB / 442.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 () * 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.0002694/0.7742, allocations: 153.6 kB / 0.5831 GB, free: 86.99 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002126/0.7745, allocations: 156.1 kB / 0.5832 GB, free: 86.99 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001703/0.7762, allocations: 1.077 MB / 0.5843 GB, free: 86.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.7762, allocations: 9.438 kB / 0.5843 GB, free: 86.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.7762, allocations: 0 / 0.5843 GB, free: 86.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.928e-06/0.7762, allocations: 5.719 kB / 0.5843 GB, free: 86.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00492/0.7811, allocations: 3.219 MB / 0.5874 GB, free: 86.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-05/0.7812, allocations: 12.16 kB / 0.5874 GB, free: 86.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/0.7823, allocations: 288.7 kB / 0.5877 GB, free: 86.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001006/0.7824, allocations: 36.64 kB / 0.5877 GB, free: 86.24 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.344e-05/0.7825, allocations: 19 kB / 0.5878 GB, free: 86.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00058/0.7831, allocations: 1.239 MB / 0.589 GB, free: 85.06 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/0.7831, allocations: 13.47 kB / 0.589 GB, free: 85.06 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00215/0.7853, allocations: 2.252 MB / 0.5912 GB, free: 83.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004751/0.7857, allocations: 318.5 kB / 0.5915 GB, free: 83.57 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001767/0.7859, allocations: 23.28 kB / 0.5915 GB, free: 83.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.787, allocations: 131.8 kB / 0.5916 GB, free: 83.56 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002132/0.7872, allocations: 132.6 kB / 0.5918 GB, free: 83.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.505e-05/0.7873, allocations: 41.81 kB / 0.5918 GB, free: 83.55 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001044/0.7883, allocations: 0.7278 MB / 0.5925 GB, free: 83.45 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.7883, allocations: 0 / 0.5925 GB, free: 83.45 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001883/0.7902, allocations: 0.5627 MB / 0.5931 GB, free: 83.45 MB / 442.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 () * 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.000573/0.7908, allocations: 395.1 kB / 0.5934 GB, free: 83.33 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002973/0.7938, allocations: 2.226 MB / 0.5956 GB, free: 83.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.7938, allocations: 0 / 0.5956 GB, free: 83.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007487/0.7946, allocations: 0.5337 MB / 0.5961 GB, free: 82.93 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.796, allocations: 294.8 kB / 0.5964 GB, free: 82.92 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004392/0.8004, allocations: 2.669 MB / 0.599 GB, free: 81.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007174/0.8012, allocations: 1.381 MB / 0.6004 GB, free: 81.06 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00184/0.803, allocations: 338.6 kB / 0.6007 GB, free: 80.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003366/0.8034, allocations: 92.28 kB / 0.6008 GB, free: 80.96 MB / 442.7 MB Notification: Performance of SimCode: time 8.61e-07/0.8034, allocations: 0 / 0.6008 GB, free: 80.96 MB / 442.7 MB Notification: Performance of Templates: time 0.03191/0.8353, allocations: 19.25 MB / 0.6196 GB, free: 79.86 MB / 442.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/jenkins/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