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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 187.9 kB / 8.137 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.219/1.219, allocations: 221.4 MB / 229.9 MB, free: 3.277 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.0009269/0.0009269, allocations: 96.05 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.284e-06/7.283e-06, allocations: 3.938 kB / 336.5 MB, free: 9.488 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1907/0.1907, allocations: 50.39 MB / 386.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1152/0.306, allocations: 117.4 MB / 0.4925 GB, free: 1.328 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.3063, allocations: 83.89 kB / 0.4925 GB, free: 1.246 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2204/0.5267, allocations: 46.37 MB / 0.5378 GB, free: 73.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001045/0.5268, allocations: 51.77 kB / 0.5379 GB, free: 73.23 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.00296/0.5298, allocations: 1.971 MB / 0.5398 GB, free: 71.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.5298, allocations: 8.031 kB / 0.5398 GB, free: 71.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007277/0.5306, allocations: 308.9 kB / 0.5401 GB, free: 70.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001886/0.5325, allocations: 1.267 MB / 0.5413 GB, free: 69.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002015/0.5327, allocations: 200.8 kB / 0.5415 GB, free: 69.4 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001881/0.5329, allocations: 119.9 kB / 0.5416 GB, free: 69.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002045/0.5349, allocations: 1.261 MB / 0.5429 GB, free: 68.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002238/0.5372, allocations: 1.504 MB / 0.5443 GB, free: 66.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.592e-05/0.5372, allocations: 3.938 kB / 0.5443 GB, free: 66.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001195/0.5374, allocations: 7.906 kB / 0.5443 GB, free: 66.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.985e-05/0.5374, allocations: 47.98 kB / 0.5444 GB, free: 66.4 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00776/0.5452, allocations: 7.138 MB / 0.5514 GB, free: 59.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.5464, allocations: 0.5638 MB / 0.5519 GB, free: 58.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005308/0.5469, allocations: 379.1 kB / 0.5523 GB, free: 58.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.535e-05/0.547, allocations: 20.55 kB / 0.5523 GB, free: 58.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.671e-05/0.547, allocations: 39.34 kB / 0.5523 GB, free: 58.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.205e-06/0.547, allocations: 0 / 0.5523 GB, free: 58.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.009055/0.5561, allocations: 4.42 MB / 0.5567 GB, free: 53.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.669e-05/0.5561, allocations: 94.09 kB / 0.5567 GB, free: 53.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001177/0.5573, allocations: 1.005 MB / 0.5577 GB, free: 52.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.481e-05/0.5574, allocations: 29.7 kB / 0.5578 GB, free: 52.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002478/0.5576, allocations: 0.786 MB / 0.5585 GB, free: 51.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/0.5578, allocations: 378.4 kB / 0.5589 GB, free: 51.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.874e-05/0.5579, allocations: 0 / 0.5589 GB, free: 51.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.027e-05/0.558, allocations: 361.8 kB / 0.5592 GB, free: 50.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007322/0.5587, allocations: 0.5195 MB / 0.5597 GB, free: 50.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008964/0.5597, allocations: 0.9496 MB / 0.5607 GB, free: 49.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000799/0.5605, allocations: 0.5567 MB / 0.5612 GB, free: 48.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.5605, allocations: 4 kB / 0.5612 GB, free: 48.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002182/0.5627, allocations: 1.529 MB / 0.5627 GB, free: 47.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007267/0.5634, allocations: 5.352 MB / 0.5679 GB, free: 41.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/0.5634, allocations: 12 kB / 0.5679 GB, free: 41.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001445/0.5636, allocations: 48.78 kB / 0.568 GB, free: 41.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001802/0.5654, allocations: 451.4 kB / 0.5684 GB, free: 40.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000665/0.5661, allocations: 1.24 MB / 0.5696 GB, free: 39.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/0.5675, allocations: 152 kB / 0.5698 GB, free: 39.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.5676, allocations: 63.98 kB / 0.5698 GB, free: 39.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.779e-06/0.5677, allocations: 7.938 kB / 0.5698 GB, free: 39.26 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001887/0.5695, allocations: 1.326 MB / 0.5711 GB, free: 37.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.5696, allocations: 12 kB / 0.5711 GB, free: 37.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.472e-05/0.5697, allocations: 44.88 kB / 0.5712 GB, free: 37.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/0.5713, allocations: 427.3 kB / 0.5716 GB, free: 37.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005838/0.5719, allocations: 1.259 MB / 0.5728 GB, free: 36.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/0.5732, allocations: 120 kB / 0.5729 GB, free: 35.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.5734, allocations: 68 kB / 0.573 GB, free: 35.9 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 () * 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.0002216/0.5736, allocations: 144.5 kB / 0.5731 GB, free: 35.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001966/0.5738, allocations: 150.1 kB / 0.5733 GB, free: 35.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001669/0.5755, allocations: 1.074 MB / 0.5743 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.5755, allocations: 12 kB / 0.5743 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.5755, allocations: 7.906 kB / 0.5744 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.5755, allocations: 3.984 kB / 0.5744 GB, free: 34.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004778/0.5803, allocations: 3.23 MB / 0.5775 GB, free: 31.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.794e-06/0.5803, allocations: 12 kB / 0.5775 GB, free: 31.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/0.5815, allocations: 295.9 kB / 0.5778 GB, free: 30.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-05/0.5816, allocations: 40.84 kB / 0.5778 GB, free: 30.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.85e-05/0.5817, allocations: 12 kB / 0.5779 GB, free: 30.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000561/0.5823, allocations: 1.24 MB / 0.5791 GB, free: 29.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/0.5823, allocations: 15.94 kB / 0.5791 GB, free: 29.38 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001925/0.5842, allocations: 2.264 MB / 0.5813 GB, free: 26.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004185/0.5846, allocations: 319.1 kB / 0.5816 GB, free: 26.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002118/0.5849, allocations: 20 kB / 0.5816 GB, free: 26.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001103/0.586, allocations: 139.9 kB / 0.5817 GB, free: 26.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.5862, allocations: 124.2 kB / 0.5819 GB, free: 26.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.969e-05/0.5863, allocations: 40 kB / 0.5819 GB, free: 25.99 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0008218/0.5871, allocations: 0.737 MB / 0.5826 GB, free: 25.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001688/0.5888, allocations: 0.5702 MB / 0.5832 GB, free: 24.68 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 () * 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.0004146/0.5892, allocations: 395.2 kB / 0.5836 GB, free: 24.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002703/0.5919, allocations: 2.259 MB / 0.5858 GB, free: 22.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5919, allocations: 0.5 kB / 0.5858 GB, free: 22.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007381/0.5927, allocations: 0.5374 MB / 0.5863 GB, free: 21.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.594, allocations: 281.7 kB / 0.5866 GB, free: 21.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004783/0.5987, allocations: 2.731 MB / 0.5892 GB, free: 18.33 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001166/0.5999, allocations: 1.498 MB / 0.5907 GB, free: 16.79 MB / 378.7 MB Notification: Performance of SimCode: time 7.72e-07/0.5999, allocations: 0 / 0.5907 GB, free: 16.79 MB / 378.7 MB Notification: Performance of Templates: time 0.03998/0.6399, allocations: 26.9 MB / 0.617 GB, free: 6.129 MB / 394.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