Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_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_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009569/0.0009569, allocations: 195.7 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 226.5 MB / 245.3 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007577/0.0007577, allocations: 97.88 kB / 297.4 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002175/0.0002176, allocations: 8 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.1922, allocations: 51.28 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2801/0.4724, allocations: 120.1 MB / 0.5164 GB, free: 96.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001929/0.4726, allocations: 87.14 kB / 0.5165 GB, free: 96.85 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09681/0.5694, allocations: 47.17 MB / 0.5625 GB, free: 50.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.5695, allocations: 0 / 0.5625 GB, free: 50.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001046/0.5696, allocations: 51.98 kB / 0.5626 GB, free: 50.11 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.003285/0.5729, allocations: 2.154 MB / 0.5647 GB, free: 47.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.5729, allocations: 12.03 kB / 0.5647 GB, free: 47.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006551/0.5736, allocations: 298 kB / 0.565 GB, free: 47.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00177/0.5754, allocations: 1.311 MB / 0.5663 GB, free: 46.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002113/0.5756, allocations: 261.4 kB / 0.5665 GB, free: 45.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002036/0.5758, allocations: 196.6 kB / 0.5667 GB, free: 45.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003003/0.5788, allocations: 1.945 MB / 0.5686 GB, free: 43.76 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.77e-05/0.5789, allocations: 7.938 kB / 0.5686 GB, free: 43.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001394/0.579, allocations: 76 kB / 0.5687 GB, free: 43.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.483e-05/0.5791, allocations: 48 kB / 0.5687 GB, free: 43.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00313/0.5822, allocations: 1.645 MB / 0.5703 GB, free: 41.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008995/0.5912, allocations: 7.472 MB / 0.5776 GB, free: 34.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/0.5934, allocations: 1.296 MB / 0.5789 GB, free: 32.81 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008899/0.5943, allocations: 499.6 kB / 0.5794 GB, free: 32.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.241e-05/0.5944, allocations: 9 kB / 0.5794 GB, free: 32.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.5945, allocations: 47.5 kB / 0.5794 GB, free: 32.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.926e-06/0.5945, allocations: 3.938 kB / 0.5794 GB, free: 32.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.02772/0.6222, allocations: 8.847 MB / 0.5881 GB, free: 23.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.6223, allocations: 86.11 kB / 0.5881 GB, free: 23.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001821/0.6241, allocations: 1.386 MB / 0.5895 GB, free: 21.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001027/0.6242, allocations: 45.7 kB / 0.5895 GB, free: 21.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000419/0.6246, allocations: 0.9786 MB / 0.5905 GB, free: 20.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002091/0.6249, allocations: 390.4 kB / 0.5909 GB, free: 20.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.479e-05/0.6249, allocations: 28 kB / 0.5909 GB, free: 20.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.023e-05/0.625, allocations: 361.9 kB / 0.5912 GB, free: 19.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001661/0.6267, allocations: 0.7925 MB / 0.592 GB, free: 19.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001759/0.6285, allocations: 1.219 MB / 0.5932 GB, free: 17.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003155/0.6316, allocations: 1.898 MB / 0.5951 GB, free: 15.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.6317, allocations: 7.938 kB / 0.5951 GB, free: 15.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004163/0.6358, allocations: 2.156 MB / 0.5972 GB, free: 13.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001869/0.636, allocations: 0.4986 MB / 0.5977 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.6361, allocations: 12 kB / 0.5977 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001654/0.6362, allocations: 44.84 kB / 0.5977 GB, free: 12.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001597/0.6378, allocations: 439.4 kB / 0.5981 GB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006713/0.6385, allocations: 1.303 MB / 0.5994 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.64, allocations: 172 kB / 0.5996 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.6401, allocations: 67.98 kB / 0.5996 GB, free: 10.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.332e-06/0.6401, allocations: 4 kB / 0.5996 GB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003409/0.6435, allocations: 1.875 MB / 0.6015 GB, free: 8.793 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/0.6436, allocations: 20.41 kB / 0.6015 GB, free: 8.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.149e-05/0.6437, allocations: 40.84 kB / 0.6015 GB, free: 8.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.6452, allocations: 411.4 kB / 0.6019 GB, free: 8.328 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006206/0.6458, allocations: 1.307 MB / 0.6032 GB, free: 6.887 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/0.6472, allocations: 144 kB / 0.6033 GB, free: 6.746 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/0.6473, allocations: 60 kB / 0.6034 GB, free: 6.688 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.0009474/0.6483, allocations: 480.6 kB / 0.6038 GB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002231/0.6485, allocations: 162 kB / 0.604 GB, free: 6.047 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003367/0.6519, allocations: 1.639 MB / 0.6056 GB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.6519, allocations: 8 kB / 0.6056 GB, free: 4.387 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.6519, allocations: 4 kB / 0.6056 GB, free: 4.383 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.6519, allocations: 7.969 kB / 0.6056 GB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006233/0.6582, allocations: 3.973 MB / 0.6095 GB, free: 216 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.738e-06/0.6582, allocations: 12 kB / 0.6095 GB, free: 204 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/0.6593, allocations: 288.2 kB / 0.6098 GB, free: 15.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001152/0.6594, allocations: 40.78 kB / 0.6098 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.66e-05/0.6595, allocations: 32 kB / 0.6099 GB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008893/0.6604, allocations: 1.292 MB / 0.6111 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.667e-05/0.6604, allocations: 15.94 kB / 0.6111 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004491/0.6649, allocations: 2.358 MB / 0.6134 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000618/0.6655, allocations: 339 kB / 0.6138 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001751/0.6657, allocations: 35.98 kB / 0.6138 GB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009878/0.6667, allocations: 143.9 kB / 0.6139 GB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000244/0.667, allocations: 132.1 kB / 0.6141 GB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.918e-05/0.6671, allocations: 44 kB / 0.6141 GB, free: 11.2 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001392/0.6685, allocations: 0.9124 MB / 0.615 GB, free: 10.29 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6685, allocations: 0 / 0.615 GB, free: 10.29 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002086/0.6706, allocations: 0.6874 MB / 0.6157 GB, free: 9.598 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.0006055/0.6712, allocations: 460 kB / 0.6161 GB, free: 9.141 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006038/0.6772, allocations: 2.972 MB / 0.619 GB, free: 6.148 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/0.6773, allocations: 4 kB / 0.619 GB, free: 6.145 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/0.6789, allocations: 0.7706 MB / 0.6198 GB, free: 5.359 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003549/0.6824, allocations: 351.6 kB / 0.6201 GB, free: 5.023 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006578/0.689, allocations: 4.359 MB / 0.6243 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009931/0.6901, allocations: 1.341 MB / 0.6257 GB, free: 15.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006583/0.6908, allocations: 119.4 kB / 0.6258 GB, free: 15.02 MB / 410.7 MB Notification: Performance of SimCode: time 8.42e-07/0.6908, allocations: 0 / 0.6258 GB, free: 15.02 MB / 410.7 MB Notification: Performance of Templates: time 0.04019/0.731, allocations: 32.68 MB / 0.6577 GB, free: 14.41 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches