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.001476/0.001476, allocations: 181 kB / 17.4 MB, free: 4.418 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.52/1.52, allocations: 223.3 MB / 241.4 MB, free: 9.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007512/0.0007512, allocations: 94.19 kB / 292.6 MB, free: 10.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002861/0.0002861, allocations: 15.94 kB / 352.4 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.205, allocations: 50.4 MB / 402.7 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.281/0.486, allocations: 118.4 MB / 0.5089 GB, free: 101.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.4863, allocations: 92.38 kB / 0.509 GB, free: 101.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1004/0.5868, allocations: 47.14 MB / 0.555 GB, free: 60.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5868, allocations: 8 kB / 0.5551 GB, free: 60.37 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000202/0.587, allocations: 47.98 kB / 0.5551 GB, free: 60.32 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.004698/0.5917, allocations: 2.158 MB / 0.5572 GB, free: 58.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.5918, allocations: 12.03 kB / 0.5572 GB, free: 58.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001024/0.5928, allocations: 298 kB / 0.5575 GB, free: 57.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002449/0.5953, allocations: 1.307 MB / 0.5588 GB, free: 56.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002844/0.5956, allocations: 261.4 kB / 0.559 GB, free: 56.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004628/0.596, allocations: 200.6 kB / 0.5592 GB, free: 55.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003307/0.5994, allocations: 1.941 MB / 0.5611 GB, free: 53.97 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.401e-05/0.5994, allocations: 0 / 0.5611 GB, free: 53.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001468/0.5996, allocations: 83.94 kB / 0.5612 GB, free: 53.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.004e-05/0.5996, allocations: 44 kB / 0.5612 GB, free: 53.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003064/0.6027, allocations: 1.645 MB / 0.5628 GB, free: 52.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008395/0.6111, allocations: 7.498 MB / 0.5702 GB, free: 44.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002193/0.6133, allocations: 1.296 MB / 0.5714 GB, free: 43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008861/0.6142, allocations: 496.2 kB / 0.5719 GB, free: 42.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.567e-05/0.6143, allocations: 16.98 kB / 0.5719 GB, free: 42.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.6143, allocations: 39.56 kB / 0.572 GB, free: 42.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.415e-06/0.6143, allocations: 0 / 0.572 GB, free: 42.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.02705/0.6414, allocations: 8.839 MB / 0.5806 GB, free: 33.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.6414, allocations: 90.11 kB / 0.5807 GB, free: 33.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001859/0.6433, allocations: 1.374 MB / 0.582 GB, free: 32.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.733e-05/0.6434, allocations: 45.7 kB / 0.5821 GB, free: 31.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004332/0.6439, allocations: 0.9863 MB / 0.583 GB, free: 30.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002268/0.6441, allocations: 394.3 kB / 0.5834 GB, free: 30.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.678e-05/0.6442, allocations: 32 kB / 0.5834 GB, free: 30.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.148e-05/0.6443, allocations: 361.9 kB / 0.5838 GB, free: 30.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001618/0.6459, allocations: 0.7847 MB / 0.5845 GB, free: 29.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001776/0.6477, allocations: 1.223 MB / 0.5857 GB, free: 27.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003177/0.6509, allocations: 1.891 MB / 0.5876 GB, free: 25.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/0.6509, allocations: 7.938 kB / 0.5876 GB, free: 25.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004126/0.655, allocations: 2.167 MB / 0.5897 GB, free: 23.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000232/0.6553, allocations: 0.4904 MB / 0.5902 GB, free: 23.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.003e-05/0.6553, allocations: 16 kB / 0.5902 GB, free: 23.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001756/0.6555, allocations: 40.78 kB / 0.5902 GB, free: 22.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001589/0.6571, allocations: 435.4 kB / 0.5907 GB, free: 22.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007492/0.6578, allocations: 1.311 MB / 0.5919 GB, free: 21.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.6593, allocations: 168 kB / 0.5921 GB, free: 20.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.6595, allocations: 67.98 kB / 0.5922 GB, free: 20.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.372e-06/0.6595, allocations: 4 kB / 0.5922 GB, free: 20.88 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00342/0.6629, allocations: 1.871 MB / 0.594 GB, free: 19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.228e-05/0.6629, allocations: 12 kB / 0.594 GB, free: 18.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.807e-05/0.663, allocations: 44.84 kB / 0.594 GB, free: 18.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001442/0.6645, allocations: 407.9 kB / 0.5944 GB, free: 18.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005797/0.6651, allocations: 1.315 MB / 0.5957 GB, free: 17.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.6664, allocations: 144 kB / 0.5959 GB, free: 16.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.6665, allocations: 68 kB / 0.5959 GB, free: 16.89 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.0008462/0.6674, allocations: 485.2 kB / 0.5964 GB, free: 16.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002866/0.6677, allocations: 162 kB / 0.5965 GB, free: 16.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003384/0.6711, allocations: 1.631 MB / 0.5981 GB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.6711, allocations: 15.94 kB / 0.5981 GB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.6711, allocations: 4 kB / 0.5982 GB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.749e-06/0.6711, allocations: 7.969 kB / 0.5982 GB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006564/0.6777, allocations: 3.966 MB / 0.602 GB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.6777, allocations: 8 kB / 0.602 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/0.6788, allocations: 283.7 kB / 0.6023 GB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001075/0.6789, allocations: 40.78 kB / 0.6023 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.177e-05/0.679, allocations: 32 kB / 0.6024 GB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006161/0.6796, allocations: 1.292 MB / 0.6036 GB, free: 8.629 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.286e-06/0.6797, allocations: 15.94 kB / 0.6037 GB, free: 8.613 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003939/0.6836, allocations: 2.362 MB / 0.606 GB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000582/0.6842, allocations: 335 kB / 0.6063 GB, free: 5.758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002703/0.6845, allocations: 35.98 kB / 0.6063 GB, free: 5.723 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/0.6855, allocations: 151.9 kB / 0.6065 GB, free: 5.574 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002249/0.6858, allocations: 136.1 kB / 0.6066 GB, free: 5.441 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.363e-05/0.6858, allocations: 40 kB / 0.6066 GB, free: 5.402 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001295/0.6871, allocations: 0.9124 MB / 0.6075 GB, free: 4.492 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6872, allocations: 0 / 0.6075 GB, free: 4.492 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002051/0.6892, allocations: 0.6952 MB / 0.6082 GB, free: 3.797 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.0005224/0.6897, allocations: 447.7 kB / 0.6086 GB, free: 3.359 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0053/0.6951, allocations: 2.966 MB / 0.6115 GB, free: 376 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.6951, allocations: 7.938 kB / 0.6115 GB, free: 368 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001522/0.6966, allocations: 0.7693 MB / 0.6123 GB, free: 15.58 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003468/0.7001, allocations: 352.8 kB / 0.6126 GB, free: 15.24 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006784/0.7069, allocations: 4.325 MB / 0.6168 GB, free: 10.76 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/0.708, allocations: 1.337 MB / 0.6181 GB, free: 9.391 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001671/0.7097, allocations: 288.8 kB / 0.6184 GB, free: 9.102 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004194/0.7101, allocations: 111.4 kB / 0.6185 GB, free: 8.992 MB / 394.7 MB Notification: Performance of SimCode: time 1.002e-06/0.7101, allocations: 0 / 0.6185 GB, free: 8.992 MB / 394.7 MB Notification: Performance of Templates: time 0.0376/0.7477, allocations: 21.73 MB / 0.6398 GB, free: 3.41 MB / 410.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/jenkins1/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