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.001694/0.001693, allocations: 185.3 kB / 16.41 MB, free: 5.727 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.892/1.892, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001106/0.001106, allocations: 97.23 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004003/0.0004003, allocations: 8 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3313, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1826/0.514, allocations: 117.3 MB / 491.9 MB, free: 11.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003352/0.5144, allocations: 91.95 kB / 492 MB, free: 11.29 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4399/0.9543, allocations: 47.11 MB / 0.5264 GB, free: 90.81 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.387e-06/0.9544, allocations: 4 kB / 0.5264 GB, free: 90.81 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001806/0.9546, allocations: 44 kB / 0.5265 GB, free: 90.77 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.007017/0.9616, allocations: 2.189 MB / 0.5286 GB, free: 88.53 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.9617, allocations: 12.02 kB / 0.5286 GB, free: 88.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001308/0.963, allocations: 297 kB / 0.5289 GB, free: 88.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003869/0.9669, allocations: 1.272 MB / 0.5302 GB, free: 86.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003634/0.9673, allocations: 268.8 kB / 0.5304 GB, free: 86.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003914/0.9677, allocations: 191.9 kB / 0.5306 GB, free: 86.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005745/0.9735, allocations: 1.925 MB / 0.5325 GB, free: 84.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.702e-05/0.9736, allocations: 7.906 kB / 0.5325 GB, free: 84.47 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002451/0.9739, allocations: 76 kB / 0.5326 GB, free: 84.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.84e-05/0.9739, allocations: 48 kB / 0.5326 GB, free: 84.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006005/0.98, allocations: 1.645 MB / 0.5342 GB, free: 82.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01518/0.9952, allocations: 7.486 MB / 0.5415 GB, free: 74.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004226/0.9995, allocations: 1.3 MB / 0.5428 GB, free: 73.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001428/0.9996, allocations: 13 kB / 0.5428 GB, free: 73.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.9997, allocations: 43.56 kB / 0.5429 GB, free: 73.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 4.298e-06/0.9997, allocations: 0 / 0.5429 GB, free: 73.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.05796/1.058, allocations: 8.846 MB / 0.5515 GB, free: 64.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.296e-05/1.058, allocations: 90.09 kB / 0.5516 GB, free: 64.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002604/1.06, allocations: 1.223 MB / 0.5528 GB, free: 63.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002322/1.061, allocations: 45.7 kB / 0.5528 GB, free: 63.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005948/1.061, allocations: 0.9482 MB / 0.5537 GB, free: 62.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003687/1.062, allocations: 390.2 kB / 0.5541 GB, free: 61.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/1.062, allocations: 32 kB / 0.5541 GB, free: 61.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/1.062, allocations: 370.7 kB / 0.5545 GB, free: 61.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003412/1.065, allocations: 0.7885 MB / 0.5553 GB, free: 60.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00368/1.069, allocations: 1.227 MB / 0.5565 GB, free: 59.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003336/1.072, allocations: 0.8223 MB / 0.5573 GB, free: 58.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/1.072, allocations: 4 kB / 0.5573 GB, free: 58.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.007786/1.08, allocations: 2.063 MB / 0.5593 GB, free: 56.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00108/1.081, allocations: 5.318 MB / 0.5645 GB, free: 50.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.55e-05/1.081, allocations: 16 kB / 0.5645 GB, free: 50.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002764/1.082, allocations: 44.84 kB / 0.5645 GB, free: 50.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003489/1.085, allocations: 435.4 kB / 0.565 GB, free: 50.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001062/1.086, allocations: 1.303 MB / 0.5662 GB, free: 48.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002807/1.089, allocations: 172 kB / 0.5664 GB, free: 48.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001759/1.089, allocations: 67.94 kB / 0.5665 GB, free: 48.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/1.089, allocations: 4 kB / 0.5665 GB, free: 48.45 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007132/1.097, allocations: 1.878 MB / 0.5683 GB, free: 46.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.647e-05/1.097, allocations: 12.47 kB / 0.5683 GB, free: 46.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001335/1.097, allocations: 48.84 kB / 0.5684 GB, free: 46.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0031/1.1, allocations: 415.3 kB / 0.5687 GB, free: 46.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008994/1.101, allocations: 1.303 MB / 0.57 GB, free: 44.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002044/1.103, allocations: 140.1 kB / 0.5702 GB, free: 44.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001525/1.103, allocations: 64 kB / 0.5702 GB, free: 44.46 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.001222/1.104, allocations: 492.5 kB / 0.5707 GB, free: 43.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004551/1.105, allocations: 161.9 kB / 0.5708 GB, free: 43.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006722/1.111, allocations: 1.639 MB / 0.5724 GB, free: 42.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.605e-05/1.112, allocations: 12 kB / 0.5725 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/1.112, allocations: 0 / 0.5725 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.851e-05/1.112, allocations: 3.984 kB / 0.5725 GB, free: 42.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01224/1.124, allocations: 3.969 MB / 0.5763 GB, free: 38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/1.124, allocations: 12 kB / 0.5763 GB, free: 37.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002171/1.126, allocations: 284.1 kB / 0.5766 GB, free: 37.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001712/1.126, allocations: 40.78 kB / 0.5767 GB, free: 37.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/1.126, allocations: 35.95 kB / 0.5767 GB, free: 37.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009192/1.127, allocations: 1.296 MB / 0.578 GB, free: 36.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.14e-05/1.127, allocations: 19.88 kB / 0.578 GB, free: 36.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008003/1.135, allocations: 2.98 MB / 0.5809 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009914/1.136, allocations: 335 kB / 0.5812 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002976/1.137, allocations: 36 kB / 0.5812 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001855/1.139, allocations: 147.9 kB / 0.5814 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000336/1.139, allocations: 136.2 kB / 0.5815 GB, free: 32.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.584e-05/1.139, allocations: 43.98 kB / 0.5815 GB, free: 32.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001835/1.141, allocations: 0.9207 MB / 0.5824 GB, free: 31.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.462e-06/1.141, allocations: 3.938 kB / 0.5824 GB, free: 31.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003229/1.144, allocations: 0.6874 MB / 0.5831 GB, free: 30.45 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.0007505/1.145, allocations: 439.3 kB / 0.5835 GB, free: 30.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01035/1.155, allocations: 2.973 MB / 0.5864 GB, free: 27.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/1.155, allocations: 0 / 0.5864 GB, free: 27.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002838/1.158, allocations: 0.774 MB / 0.5872 GB, free: 26.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002695/1.161, allocations: 342 kB / 0.5875 GB, free: 25.94 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009433/1.17, allocations: 4.388 MB / 0.5918 GB, free: 21.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009941/1.171, allocations: 1.384 MB / 0.5932 GB, free: 19.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009771/1.172, allocations: 119.4 kB / 0.5933 GB, free: 19.86 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/1.172, allocations: 0 / 0.5933 GB, free: 19.86 MB / 378.7 MB Notification: Performance of Templates: time 0.05628/1.229, allocations: 31.72 MB / 0.6242 GB, free: 4.094 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