Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 221.3 MB / 235.5 MB, free: 2.906 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000813/0.0008131, allocations: 87.81 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.775e-05/1.778e-05, allocations: 0 / 343.8 MB, free: 4.301 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08122/0.08126, allocations: 50.41 MB / 394.2 MB, free: 1.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3014/0.3827, allocations: 118.1 MB / 0.5003 GB, free: 1.367 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/0.3829, allocations: 83.78 kB / 0.5004 GB, free: 1.289 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1187/0.5016, allocations: 47.28 MB / 0.5466 GB, free: 1.805 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.5017, allocations: 0 / 0.5466 GB, free: 1.805 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001125/0.5018, allocations: 51.92 kB / 0.5466 GB, free: 1.754 MB / 426.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.2264/0.7282, allocations: 1.922 MB / 0.5485 GB, free: 103.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.7283, allocations: 10.78 kB / 0.5485 GB, free: 103.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001894/0.7302, allocations: 298.6 kB / 0.5488 GB, free: 102.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004362/0.7346, allocations: 1.25 MB / 0.55 GB, free: 102.6 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004413/0.735, allocations: 263 kB / 0.5503 GB, free: 102.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000445/0.7355, allocations: 192.4 kB / 0.5505 GB, free: 102.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004731/0.7402, allocations: 1.776 MB / 0.5522 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.514e-05/0.7403, allocations: 7.484 kB / 0.5522 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002229/0.7406, allocations: 73.84 kB / 0.5523 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.637e-05/0.7406, allocations: 45.72 kB / 0.5523 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004083/0.7447, allocations: 1.367 MB / 0.5537 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01542/0.7602, allocations: 7.473 MB / 0.561 GB, free: 99.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003006/0.7632, allocations: 1.136 MB / 0.5621 GB, free: 99.21 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009555/0.7642, allocations: 366 kB / 0.5624 GB, free: 99.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001009/0.7643, allocations: 14.38 kB / 0.5624 GB, free: 99.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.7644, allocations: 42.39 kB / 0.5625 GB, free: 99.16 MB / 426.7 MB Notification: Performance of pre-optimization done (n=84): time 1.212e-05/0.7644, allocations: 2.625 kB / 0.5625 GB, free: 99.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=111): time 0.01788/0.7823, allocations: 4.634 MB / 0.567 GB, free: 98.24 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.7824, allocations: 93.14 kB / 0.5671 GB, free: 98.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002907/0.7853, allocations: 1.196 MB / 0.5682 GB, free: 97.97 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001333/0.7854, allocations: 43.45 kB / 0.5683 GB, free: 97.94 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000813/0.7863, allocations: 0.9796 MB / 0.5692 GB, free: 97.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004005/0.7867, allocations: 390.7 kB / 0.5696 GB, free: 97.09 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/0.7868, allocations: 30.16 kB / 0.5696 GB, free: 97.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.787, allocations: 370.7 kB / 0.57 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001593/0.7886, allocations: 0.5441 MB / 0.5705 GB, free: 96.48 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001811/0.7904, allocations: 0.9809 MB / 0.5715 GB, free: 95.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.792, allocations: 0.5848 MB / 0.5721 GB, free: 95.46 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.318e-05/0.7921, allocations: 4 kB / 0.5721 GB, free: 95.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004854/0.7969, allocations: 1.68 MB / 0.5737 GB, free: 94.81 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008247/0.7978, allocations: 5.41 MB / 0.579 GB, free: 89.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.192e-05/0.7978, allocations: 14.69 kB / 0.579 GB, free: 89.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002423/0.7981, allocations: 38.92 kB / 0.579 GB, free: 89.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003324/0.8014, allocations: 438.8 kB / 0.5795 GB, free: 89.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/0.8025, allocations: 1.305 MB / 0.5807 GB, free: 87.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002715/0.8052, allocations: 177 kB / 0.5809 GB, free: 87.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002062/0.8054, allocations: 66.28 kB / 0.581 GB, free: 87.78 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.8055, allocations: 6 kB / 0.581 GB, free: 87.78 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003854/0.8093, allocations: 1.499 MB / 0.5824 GB, free: 87.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.36e-05/0.8094, allocations: 15.81 kB / 0.5824 GB, free: 87.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001594/0.8096, allocations: 43.25 kB / 0.5825 GB, free: 87.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002838/0.8124, allocations: 412.4 kB / 0.5829 GB, free: 87.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009395/0.8134, allocations: 1.296 MB / 0.5841 GB, free: 85.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002444/0.8158, allocations: 144.4 kB / 0.5843 GB, free: 85.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001667/0.816, allocations: 63.03 kB / 0.5843 GB, free: 85.73 MB / 426.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.0004687/0.8165, allocations: 199.3 kB / 0.5845 GB, free: 85.55 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003872/0.8169, allocations: 159.5 kB / 0.5847 GB, free: 85.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003142/0.8201, allocations: 1.177 MB / 0.5858 GB, free: 84.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/0.8201, allocations: 15.03 kB / 0.5859 GB, free: 84.93 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.8201, allocations: 0 / 0.5859 GB, free: 84.93 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.807e-05/0.8201, allocations: 9.094 kB / 0.5859 GB, free: 84.93 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009314/0.8295, allocations: 3.565 MB / 0.5893 GB, free: 83.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.738e-05/0.8295, allocations: 7.875 kB / 0.5894 GB, free: 83.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002061/0.8316, allocations: 287.6 kB / 0.5896 GB, free: 83.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001575/0.8318, allocations: 40.23 kB / 0.5897 GB, free: 83.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001137/0.8319, allocations: 31.81 kB / 0.5897 GB, free: 83.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009343/0.8329, allocations: 1.295 MB / 0.591 GB, free: 81.77 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-05/0.8329, allocations: 19.31 kB / 0.591 GB, free: 81.77 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003896/0.8368, allocations: 2.367 MB / 0.5933 GB, free: 79.75 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008793/0.8377, allocations: 333.7 kB / 0.5936 GB, free: 79.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002952/0.838, allocations: 41.5 kB / 0.5936 GB, free: 79.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001958/0.84, allocations: 151.3 kB / 0.5938 GB, free: 79.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003489/0.8404, allocations: 135.9 kB / 0.5939 GB, free: 79.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/0.8405, allocations: 42.56 kB / 0.594 GB, free: 79.41 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001956/0.8425, allocations: 0.8942 MB / 0.5948 GB, free: 79.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.8425, allocations: 0 / 0.5948 GB, free: 79.03 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003545/0.8461, allocations: 0.6875 MB / 0.5955 GB, free: 78.96 MB / 426.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.0007356/0.8468, allocations: 424.8 kB / 0.5959 GB, free: 78.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005628/0.8525, allocations: 2.385 MB / 0.5982 GB, free: 77.63 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/0.8525, allocations: 2.969 kB / 0.5982 GB, free: 77.63 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001464/0.854, allocations: 0.57 MB / 0.5988 GB, free: 77.34 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002648/0.8567, allocations: 322.5 kB / 0.5991 GB, free: 77.25 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008346/0.865, allocations: 2.774 MB / 0.6018 GB, free: 75.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001306/0.8664, allocations: 1.384 MB / 0.6032 GB, free: 75 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003928/0.8703, allocations: 350.3 kB / 0.6035 GB, free: 74.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006407/0.871, allocations: 86.94 kB / 0.6036 GB, free: 74.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.062e-06/0.871, allocations: 0 / 0.6036 GB, free: 74.9 MB / 426.7 MB Notification: Performance of Templates: time 0.06253/0.9336, allocations: 23.99 MB / 0.627 GB, free: 68.78 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches