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.002314/0.002319, allocations: 181 kB / 13.66 MB, free: 1.664 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.976/1.976, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001059/0.001058, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.515e-05/3.53e-05, allocations: 8 kB / 321.5 MB, free: 17.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0902/0.09027, allocations: 47.57 MB / 369.1 MB, free: 2.184 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4619/0.5522, allocations: 117.2 MB / 486.3 MB, free: 8.383 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003176/0.5526, allocations: 88.88 kB / 486.4 MB, free: 8.336 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2051/0.7577, allocations: 47.1 MB / 0.521 GB, free: 10.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.7578, allocations: 3.938 kB / 0.521 GB, free: 10.49 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002537/0.758, allocations: 51.92 kB / 0.5211 GB, free: 10.44 MB / 410.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.007198/0.7652, allocations: 1.93 MB / 0.523 GB, free: 8.461 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.7653, allocations: 8.031 kB / 0.523 GB, free: 8.453 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001705/0.767, allocations: 309 kB / 0.5233 GB, free: 8.148 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004498/0.7716, allocations: 1.257 MB / 0.5245 GB, free: 6.836 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005371/0.7722, allocations: 264.8 kB / 0.5247 GB, free: 6.559 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006958/0.7729, allocations: 191.9 kB / 0.5249 GB, free: 6.371 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006208/0.7791, allocations: 1.777 MB / 0.5267 GB, free: 4.539 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001088/0.7793, allocations: 4 kB / 0.5267 GB, free: 4.535 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003345/0.7796, allocations: 79.94 kB / 0.5267 GB, free: 4.457 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.639e-05/0.7797, allocations: 44 kB / 0.5268 GB, free: 4.414 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004978/0.7847, allocations: 1.373 MB / 0.5281 GB, free: 3.039 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2859/1.071, allocations: 7.461 MB / 0.5354 GB, free: 98.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003435/1.074, allocations: 1.137 MB / 0.5365 GB, free: 98.24 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/1.075, allocations: 363.4 kB / 0.5369 GB, free: 98.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001279/1.075, allocations: 11.22 kB / 0.5369 GB, free: 98.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/1.076, allocations: 46.02 kB / 0.5369 GB, free: 98.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 5.44e-06/1.076, allocations: 0 / 0.5369 GB, free: 98.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=111): time 0.01972/1.095, allocations: 4.64 MB / 0.5414 GB, free: 97.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/1.095, allocations: 90.72 kB / 0.5415 GB, free: 97.24 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003667/1.099, allocations: 1.206 MB / 0.5427 GB, free: 97.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003053/1.099, allocations: 45.08 kB / 0.5428 GB, free: 97.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009705/1.1, allocations: 0.9409 MB / 0.5437 GB, free: 96.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006557/1.101, allocations: 393.9 kB / 0.544 GB, free: 96.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001879/1.101, allocations: 29.19 kB / 0.5441 GB, free: 96.44 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/1.101, allocations: 368.4 kB / 0.5444 GB, free: 96.13 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001939/1.103, allocations: 0.5448 MB / 0.545 GB, free: 96.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002261/1.106, allocations: 0.9791 MB / 0.5459 GB, free: 95.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001958/1.108, allocations: 0.5863 MB / 0.5465 GB, free: 95.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-05/1.108, allocations: 4.312 kB / 0.5465 GB, free: 95.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.005346/1.113, allocations: 1.589 MB / 0.548 GB, free: 95.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00138/1.115, allocations: 5.316 MB / 0.5532 GB, free: 89.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.004e-05/1.115, allocations: 13.69 kB / 0.5532 GB, free: 89.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003348/1.115, allocations: 47.92 kB / 0.5533 GB, free: 89.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003899/1.119, allocations: 439.9 kB / 0.5537 GB, free: 89.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00123/1.12, allocations: 1.297 MB / 0.555 GB, free: 88.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003341/1.124, allocations: 172.6 kB / 0.5551 GB, free: 88.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004432/1.124, allocations: 63.7 kB / 0.5552 GB, free: 88.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/1.124, allocations: 3.344 kB / 0.5552 GB, free: 88.7 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00506/1.129, allocations: 1.495 MB / 0.5567 GB, free: 88.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.051e-05/1.129, allocations: 13.5 kB / 0.5567 GB, free: 88.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001864/1.13, allocations: 49.92 kB / 0.5567 GB, free: 88.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003583/1.133, allocations: 416.6 kB / 0.5571 GB, free: 88.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/1.134, allocations: 1.289 MB / 0.5584 GB, free: 87.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002312/1.137, allocations: 146.8 kB / 0.5585 GB, free: 87.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003407/1.137, allocations: 62.33 kB / 0.5586 GB, free: 87.4 MB / 410.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.0006373/1.138, allocations: 201.4 kB / 0.5588 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000604/1.138, allocations: 163.7 kB / 0.5589 GB, free: 87.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003877/1.142, allocations: 1.18 MB / 0.5601 GB, free: 87.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.955e-05/1.142, allocations: 11.64 kB / 0.5601 GB, free: 87.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/1.142, allocations: 0.7969 kB / 0.5601 GB, free: 87.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.193e-05/1.142, allocations: 8.75 kB / 0.5601 GB, free: 87.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01156/1.154, allocations: 3.57 MB / 0.5636 GB, free: 85.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.068e-05/1.154, allocations: 15.66 kB / 0.5636 GB, free: 85.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002353/1.156, allocations: 291 kB / 0.5639 GB, free: 85.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001868/1.157, allocations: 31.42 kB / 0.5639 GB, free: 85.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002035/1.157, allocations: 36.59 kB / 0.5639 GB, free: 85.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009988/1.158, allocations: 1.286 MB / 0.5652 GB, free: 84.58 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.126e-05/1.158, allocations: 20.84 kB / 0.5652 GB, free: 84.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004588/1.162, allocations: 2.368 MB / 0.5675 GB, free: 82.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/1.164, allocations: 340.4 kB / 0.5679 GB, free: 82.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006029/1.164, allocations: 34.09 kB / 0.5679 GB, free: 82.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002432/1.167, allocations: 152 kB / 0.568 GB, free: 82.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004682/1.167, allocations: 130.2 kB / 0.5682 GB, free: 82.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001216/1.168, allocations: 46.55 kB / 0.5682 GB, free: 82.22 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002306/1.17, allocations: 0.8968 MB / 0.5691 GB, free: 81.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.483e-06/1.17, allocations: 6.406 kB / 0.5691 GB, free: 81.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004559/1.174, allocations: 0.6907 MB / 0.5698 GB, free: 81.76 MB / 410.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.00102/1.176, allocations: 434.9 kB / 0.5702 GB, free: 81.56 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006205/1.182, allocations: 2.332 MB / 0.5725 GB, free: 80.44 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.667e-05/1.182, allocations: 5.656 kB / 0.5725 GB, free: 80.44 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001719/1.184, allocations: 0.5701 MB / 0.573 GB, free: 80.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003046/1.187, allocations: 332.9 kB / 0.5733 GB, free: 80.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009025/1.196, allocations: 2.806 MB / 0.5761 GB, free: 78.51 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001471/1.197, allocations: 1.388 MB / 0.5774 GB, free: 77.76 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/1.198, allocations: 117.3 kB / 0.5775 GB, free: 77.75 MB / 410.7 MB Notification: Performance of SimCode: time 1.303e-06/1.198, allocations: 0 / 0.5775 GB, free: 77.75 MB / 410.7 MB Notification: Performance of Templates: time 0.05805/1.257, allocations: 31.72 MB / 0.6085 GB, free: 67.67 MB / 410.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