Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001589/0.001589, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008068/0.0008068, allocations: 82.7 kB / 262.4 MB, free: 1.672 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.292e-05/1.295e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07855/0.07858, allocations: 47.59 MB / 363.1 MB, free: 7.066 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3013/0.3799, allocations: 116.8 MB / 479.9 MB, free: 11.26 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/0.3801, allocations: 85.7 kB / 480 MB, free: 11.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1143/0.4945, allocations: 46.24 MB / 0.5139 GB, free: 2.352 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.542e-06/0.4945, allocations: 0 / 0.5139 GB, free: 2.352 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001388/0.4947, allocations: 55.92 kB / 0.5139 GB, free: 2.297 MB / 394.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.003759/0.4984, allocations: 1.926 MB / 0.5158 GB, free: 328 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.4985, allocations: 8.031 kB / 0.5158 GB, free: 320 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008868/0.4994, allocations: 305 kB / 0.5161 GB, free: 12 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002383/0.5018, allocations: 1.261 MB / 0.5174 GB, free: 14.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002599/0.5021, allocations: 196.8 kB / 0.5175 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002643/0.5023, allocations: 119.9 kB / 0.5177 GB, free: 14.37 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002506/0.5048, allocations: 1.261 MB / 0.5189 GB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002724/0.5076, allocations: 1.512 MB / 0.5204 GB, free: 11.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.71e-05/0.5076, allocations: 7.984 kB / 0.5204 GB, free: 11.53 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.5078, allocations: 4 kB / 0.5204 GB, free: 11.53 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-05/0.5078, allocations: 44 kB / 0.5204 GB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01043/0.5182, allocations: 7.127 MB / 0.5274 GB, free: 4.051 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001803/0.5201, allocations: 1.108 MB / 0.5285 GB, free: 2.863 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005054/0.5206, allocations: 351.2 kB / 0.5288 GB, free: 2.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.769e-05/0.5207, allocations: 8.781 kB / 0.5288 GB, free: 2.512 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.5207, allocations: 39.34 kB / 0.5288 GB, free: 2.465 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 2.875e-06/0.5207, allocations: 4 kB / 0.5288 GB, free: 2.461 MB / 410.7 MB Notification: Performance of matching and sorting (n=111): time 0.1935/0.7142, allocations: 4.39 MB / 0.5331 GB, free: 104.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.892e-05/0.7143, allocations: 97.12 kB / 0.5332 GB, free: 104.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001565/0.7159, allocations: 1.009 MB / 0.5342 GB, free: 104.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.825e-05/0.716, allocations: 25.7 kB / 0.5342 GB, free: 104.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006075/0.7166, allocations: 0.9909 MB / 0.5352 GB, free: 104.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002889/0.7169, allocations: 373.5 kB / 0.5356 GB, free: 103.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.639e-05/0.717, allocations: 2.953 kB / 0.5356 GB, free: 103.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.7171, allocations: 365.9 kB / 0.5359 GB, free: 103.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007585/0.7179, allocations: 0.5155 MB / 0.5364 GB, free: 103.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009188/0.7188, allocations: 0.9402 MB / 0.5373 GB, free: 103.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000884/0.7197, allocations: 0.5502 MB / 0.5379 GB, free: 103.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.7197, allocations: 6.516 kB / 0.5379 GB, free: 103.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00246/0.7222, allocations: 1.526 MB / 0.5394 GB, free: 103 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007801/0.723, allocations: 5.367 MB / 0.5446 GB, free: 97.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.186e-05/0.723, allocations: 13.19 kB / 0.5446 GB, free: 97.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001634/0.7232, allocations: 39.77 kB / 0.5447 GB, free: 97.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001861/0.7251, allocations: 442.7 kB / 0.5451 GB, free: 97.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007034/0.7258, allocations: 1.242 MB / 0.5463 GB, free: 96.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/0.7274, allocations: 142.2 kB / 0.5464 GB, free: 96.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.7275, allocations: 68.48 kB / 0.5465 GB, free: 96.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.526e-06/0.7275, allocations: 2.75 kB / 0.5465 GB, free: 96.25 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002118/0.7297, allocations: 1.32 MB / 0.5478 GB, free: 96.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.119e-05/0.7297, allocations: 14.47 kB / 0.5478 GB, free: 96.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001045/0.7298, allocations: 41.83 kB / 0.5478 GB, free: 96.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00168/0.7315, allocations: 410.3 kB / 0.5482 GB, free: 96.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005808/0.7321, allocations: 1.251 MB / 0.5495 GB, free: 95.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001548/0.7336, allocations: 116.7 kB / 0.5496 GB, free: 95.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.7338, allocations: 62.2 kB / 0.5496 GB, free: 95.01 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.0003225/0.7341, allocations: 147.2 kB / 0.5498 GB, free: 94.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002728/0.7344, allocations: 156.9 kB / 0.5499 GB, free: 94.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00204/0.7365, allocations: 1.079 MB / 0.551 GB, free: 94.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.7365, allocations: 10.81 kB / 0.551 GB, free: 94.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.7365, allocations: 5.609 kB / 0.551 GB, free: 94.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.7365, allocations: 4.922 kB / 0.551 GB, free: 94.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005901/0.7424, allocations: 3.232 MB / 0.5541 GB, free: 94.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.69e-05/0.7425, allocations: 13.27 kB / 0.5542 GB, free: 94.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001216/0.7437, allocations: 287.7 kB / 0.5544 GB, free: 94.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001062/0.7438, allocations: 40.47 kB / 0.5545 GB, free: 94.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.786e-05/0.7439, allocations: 21.66 kB / 0.5545 GB, free: 94.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006445/0.7445, allocations: 1.245 MB / 0.5557 GB, free: 92.84 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.17e-05/0.7446, allocations: 15.41 kB / 0.5557 GB, free: 92.83 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002572/0.7471, allocations: 2.26 MB / 0.5579 GB, free: 91.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005174/0.7477, allocations: 325.5 kB / 0.5582 GB, free: 91.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000173/0.7479, allocations: 17.91 kB / 0.5583 GB, free: 91.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.7489, allocations: 133.6 kB / 0.5584 GB, free: 91.15 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002353/0.7491, allocations: 130.8 kB / 0.5585 GB, free: 91.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.169e-05/0.7492, allocations: 40.12 kB / 0.5585 GB, free: 91.13 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009681/0.7502, allocations: 0.7403 MB / 0.5593 GB, free: 91.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7502, allocations: 4 kB / 0.5593 GB, free: 91.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001984/0.7522, allocations: 0.568 MB / 0.5598 GB, free: 91.02 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.0004774/0.7527, allocations: 391.3 kB / 0.5602 GB, free: 90.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002796/0.7555, allocations: 2.224 MB / 0.5624 GB, free: 90.56 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.7555, allocations: 3.875 kB / 0.5624 GB, free: 90.56 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006994/0.7562, allocations: 0.5289 MB / 0.5629 GB, free: 90.42 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/0.7575, allocations: 297.2 kB / 0.5632 GB, free: 90.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00402/0.7615, allocations: 2.704 MB / 0.5658 GB, free: 89.22 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006417/0.7621, allocations: 1.391 MB / 0.5672 GB, free: 88.48 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001682/0.7638, allocations: 334 kB / 0.5675 GB, free: 88.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003116/0.7642, allocations: 86.22 kB / 0.5676 GB, free: 88.38 MB / 410.7 MB Notification: Performance of SimCode: time 4.71e-07/0.7642, allocations: 3.938 kB / 0.5676 GB, free: 88.38 MB / 410.7 MB Notification: Performance of Templates: time 0.0269/0.7911, allocations: 19.39 MB / 0.5865 GB, free: 87.11 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches