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.002483/0.002483, allocations: 181.2 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.651/2.651, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.001308/0.001309, allocations: 78.39 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004162/0.0004164, allocations: 8 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5197/0.5202, allocations: 47.58 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2512/0.7715, allocations: 117.6 MB / 493.4 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000437/0.772, allocations: 91.95 kB / 493.5 MB, free: 10.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4846/1.257, allocations: 46.96 MB / 0.5278 GB, free: 90.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.36e-06/1.257, allocations: 4 kB / 0.5278 GB, free: 90.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002231/1.257, allocations: 55.91 kB / 0.5278 GB, free: 90.34 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.00779/1.265, allocations: 2.158 MB / 0.5299 GB, free: 88.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.482e-05/1.265, allocations: 12.03 kB / 0.5299 GB, free: 88.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002045/1.267, allocations: 302 kB / 0.5302 GB, free: 87.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005309/1.272, allocations: 1.319 MB / 0.5315 GB, free: 86.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004299/1.273, allocations: 273.3 kB / 0.5318 GB, free: 86.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006946/1.273, allocations: 188.7 kB / 0.5319 GB, free: 86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006688/1.28, allocations: 1.944 MB / 0.5338 GB, free: 84.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000106/1.28, allocations: 11.94 kB / 0.5339 GB, free: 84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002577/1.281, allocations: 76 kB / 0.5339 GB, free: 83.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.145e-05/1.281, allocations: 47.94 kB / 0.534 GB, free: 83.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006658/1.287, allocations: 1.649 MB / 0.5356 GB, free: 82.22 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01825/1.306, allocations: 7.487 MB / 0.5429 GB, free: 74.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003938/1.31, allocations: 1.292 MB / 0.5442 GB, free: 73.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001555/1.311, allocations: 499.9 kB / 0.5446 GB, free: 72.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001095/1.312, allocations: 20.91 kB / 0.5447 GB, free: 72.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.592e-05/1.312, allocations: 47.56 kB / 0.5447 GB, free: 72.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 6.342e-06/1.312, allocations: 0 / 0.5447 GB, free: 72.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.04576/1.357, allocations: 8.841 MB / 0.5533 GB, free: 63.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/1.358, allocations: 90.11 kB / 0.5534 GB, free: 63.49 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004181/1.362, allocations: 1.383 MB / 0.5548 GB, free: 62.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003932/1.362, allocations: 45.7 kB / 0.5548 GB, free: 62.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009932/1.363, allocations: 0.9864 MB / 0.5558 GB, free: 61.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006323/1.364, allocations: 390.2 kB / 0.5562 GB, free: 60.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/1.364, allocations: 32 kB / 0.5562 GB, free: 60.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001966/1.364, allocations: 361.9 kB / 0.5565 GB, free: 60.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002952/1.367, allocations: 0.7886 MB / 0.5573 GB, free: 59.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003072/1.37, allocations: 1.231 MB / 0.5585 GB, free: 58.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005447/1.376, allocations: 1.883 MB / 0.5603 GB, free: 56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-05/1.376, allocations: 7.938 kB / 0.5603 GB, free: 55.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.007365/1.383, allocations: 2.171 MB / 0.5625 GB, free: 53.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004668/1.384, allocations: 495.5 kB / 0.5629 GB, free: 53.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.172e-05/1.384, allocations: 16 kB / 0.563 GB, free: 53.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002914/1.384, allocations: 40.84 kB / 0.563 GB, free: 53.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002614/1.387, allocations: 439.4 kB / 0.5634 GB, free: 52.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/1.388, allocations: 1.299 MB / 0.5647 GB, free: 51.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00283/1.391, allocations: 171.9 kB / 0.5648 GB, free: 51.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002338/1.391, allocations: 67.98 kB / 0.5649 GB, free: 50.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/1.391, allocations: 4 kB / 0.5649 GB, free: 50.98 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006327/1.398, allocations: 1.871 MB / 0.5667 GB, free: 49.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-05/1.398, allocations: 16 kB / 0.5668 GB, free: 49.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002018/1.398, allocations: 40.84 kB / 0.5668 GB, free: 49.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002455/1.4, allocations: 411.9 kB / 0.5672 GB, free: 48.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001175/1.402, allocations: 1.307 MB / 0.5685 GB, free: 47.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002627/1.404, allocations: 147.9 kB / 0.5686 GB, free: 47.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002036/1.404, allocations: 68 kB / 0.5687 GB, free: 46.99 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.001663/1.406, allocations: 484.5 kB / 0.5691 GB, free: 46.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005089/1.407, allocations: 165.9 kB / 0.5693 GB, free: 46.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005934/1.413, allocations: 1.635 MB / 0.5709 GB, free: 44.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/1.413, allocations: 12 kB / 0.5709 GB, free: 44.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/1.413, allocations: 0 / 0.5709 GB, free: 44.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-05/1.413, allocations: 11.97 kB / 0.5709 GB, free: 44.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01203/1.425, allocations: 3.985 MB / 0.5748 GB, free: 40.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.186e-05/1.425, allocations: 8 kB / 0.5748 GB, free: 40.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001762/1.427, allocations: 287.7 kB / 0.5751 GB, free: 40.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002172/1.427, allocations: 36.8 kB / 0.5751 GB, free: 40.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001453/1.427, allocations: 35.98 kB / 0.5752 GB, free: 40.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001376/1.428, allocations: 1.291 MB / 0.5764 GB, free: 38.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.524e-05/1.429, allocations: 15.94 kB / 0.5764 GB, free: 38.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007095/1.436, allocations: 2.358 MB / 0.5787 GB, free: 36.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001595/1.437, allocations: 338.9 kB / 0.5791 GB, free: 35.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003945/1.438, allocations: 36 kB / 0.5791 GB, free: 35.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001637/1.439, allocations: 147.9 kB / 0.5792 GB, free: 35.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004163/1.44, allocations: 132.1 kB / 0.5794 GB, free: 35.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/1.44, allocations: 43.98 kB / 0.5794 GB, free: 35.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002533/1.442, allocations: 0.9206 MB / 0.5803 GB, free: 34.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.5e-07/1.443, allocations: 0 / 0.5803 GB, free: 34.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005241/1.448, allocations: 0.6952 MB / 0.581 GB, free: 33.89 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.001195/1.449, allocations: 441.3 kB / 0.5814 GB, free: 33.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01022/1.459, allocations: 2.97 MB / 0.5843 GB, free: 30.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.255e-05/1.459, allocations: 8.188 kB / 0.5843 GB, free: 30.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002634/1.462, allocations: 0.7654 MB / 0.5851 GB, free: 29.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006525/1.469, allocations: 347.7 kB / 0.5854 GB, free: 29.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/1.48, allocations: 4.397 MB / 0.5897 GB, free: 24.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001327/1.482, allocations: 1.341 MB / 0.591 GB, free: 23.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0011/1.483, allocations: 119.4 kB / 0.5911 GB, free: 23.34 MB / 378.7 MB Notification: Performance of SimCode: time 3.266e-06/1.483, allocations: 0 / 0.5911 GB, free: 23.34 MB / 378.7 MB Notification: Performance of Templates: time 0.07005/1.553, allocations: 32.81 MB / 0.6231 GB, free: 6.48 MB / 394.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/jenkins1/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