Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,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",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,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",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001261/0.001261, allocations: 198 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 226.5 MB / 245.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007304/0.0007304, allocations: 100.2 kB / 297.4 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002143/0.0002144, allocations: 4 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.1849, allocations: 51.3 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2785/0.4634, allocations: 118.1 MB / 0.5145 GB, free: 98.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.4637, allocations: 88.08 kB / 0.5145 GB, free: 98.81 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08162/0.5453, allocations: 39.52 MB / 0.5531 GB, free: 59.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5454, allocations: 0 / 0.5531 GB, free: 59.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001193/0.5455, allocations: 36 kB / 0.5532 GB, free: 59.73 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003158/0.5487, allocations: 1.731 MB / 0.5549 GB, free: 57.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.5487, allocations: 8.031 kB / 0.5549 GB, free: 57.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000737/0.5495, allocations: 246.5 kB / 0.5551 GB, free: 57.69 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001703/0.5512, allocations: 1.11 MB / 0.5562 GB, free: 56.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.234e-05/0.5512, allocations: 111.4 kB / 0.5563 GB, free: 56.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001937/0.5514, allocations: 156.2 kB / 0.5565 GB, free: 56.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002084/0.5535, allocations: 1.431 MB / 0.5579 GB, free: 54.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.401e-05/0.5536, allocations: 7.938 kB / 0.5579 GB, free: 54.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001069/0.5537, allocations: 60 kB / 0.5579 GB, free: 54.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/0.5537, allocations: 36 kB / 0.558 GB, free: 54.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001665/0.5554, allocations: 0.9751 MB / 0.5589 GB, free: 53.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006364/0.5618, allocations: 6.217 MB / 0.565 GB, free: 47.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009712/0.5628, allocations: 0.6777 MB / 0.5656 GB, free: 46.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003658/0.5631, allocations: 250 kB / 0.5659 GB, free: 46.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.723e-05/0.5632, allocations: 4.438 kB / 0.5659 GB, free: 46.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.907e-05/0.5632, allocations: 39 kB / 0.5659 GB, free: 46.15 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 2.304e-06/0.5632, allocations: 7.938 kB / 0.5659 GB, free: 46.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.002607/0.5658, allocations: 1.742 MB / 0.5676 GB, free: 44.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.027e-05/0.5659, allocations: 89.55 kB / 0.5677 GB, free: 44.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001182/0.5671, allocations: 1.084 MB / 0.5688 GB, free: 43.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.454e-05/0.5671, allocations: 37.7 kB / 0.5688 GB, free: 43.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003263/0.5674, allocations: 0.8091 MB / 0.5696 GB, free: 42.26 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.492e-05/0.5675, allocations: 201.2 kB / 0.5698 GB, free: 42.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.181e-05/0.5676, allocations: 20 kB / 0.5698 GB, free: 42.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.464e-05/0.5676, allocations: 341.9 kB / 0.5701 GB, free: 41.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004373/0.5681, allocations: 245.8 kB / 0.5704 GB, free: 41.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005247/0.5686, allocations: 0.6329 MB / 0.571 GB, free: 40.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009828/0.5696, allocations: 0.938 MB / 0.5719 GB, free: 39.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.5696, allocations: 4 kB / 0.5719 GB, free: 39.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001416/0.5711, allocations: 1.01 MB / 0.5729 GB, free: 38.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001516/0.5712, allocations: 480.5 kB / 0.5733 GB, free: 37.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.5712, allocations: 15.98 kB / 0.5734 GB, free: 37.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001348/0.5714, allocations: 36.86 kB / 0.5734 GB, free: 37.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006786/0.5721, allocations: 235.6 kB / 0.5736 GB, free: 37.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006326/0.5727, allocations: 1.295 MB / 0.5749 GB, free: 36.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006419/0.5734, allocations: 59.98 kB / 0.5749 GB, free: 36.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.054e-05/0.5734, allocations: 48 kB / 0.575 GB, free: 36.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.29e-06/0.5734, allocations: 4 kB / 0.575 GB, free: 36.03 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001068/0.5745, allocations: 0.8148 MB / 0.5758 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.5745, allocations: 16.19 kB / 0.5758 GB, free: 35.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.866e-05/0.5746, allocations: 40.84 kB / 0.5758 GB, free: 35.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005925/0.5752, allocations: 215.6 kB / 0.5761 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005341/0.5758, allocations: 1.3 MB / 0.5773 GB, free: 33.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000581/0.5764, allocations: 36 kB / 0.5774 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-05/0.5764, allocations: 51.98 kB / 0.5774 GB, free: 33.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (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 (123): * Single equations (assignments): 122 * 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.0004976/0.5769, allocations: 408.8 kB / 0.5778 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.5771, allocations: 122.5 kB / 0.5779 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009429/0.578, allocations: 0.5787 MB / 0.5785 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-06/0.578, allocations: 8 kB / 0.5785 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.578, allocations: 0 / 0.5785 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.578, allocations: 3.984 kB / 0.5785 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002379/0.5804, allocations: 1.843 MB / 0.5803 GB, free: 30.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.5804, allocations: 0 / 0.5803 GB, free: 30.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000454/0.5809, allocations: 120 kB / 0.5804 GB, free: 30.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.47e-05/0.581, allocations: 32.78 kB / 0.5804 GB, free: 30.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.581, allocations: 12 kB / 0.5804 GB, free: 30.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000522/0.5816, allocations: 1.276 MB / 0.5817 GB, free: 28.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.5816, allocations: 0 / 0.5817 GB, free: 28.79 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.5828, allocations: 0.946 MB / 0.5826 GB, free: 27.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002677/0.583, allocations: 231.6 kB / 0.5828 GB, free: 27.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001156/0.5832, allocations: 15.98 kB / 0.5829 GB, free: 27.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004585/0.5836, allocations: 35.98 kB / 0.5829 GB, free: 27.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.897e-05/0.5837, allocations: 48.31 kB / 0.5829 GB, free: 27.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.802e-05/0.5837, allocations: 19.98 kB / 0.583 GB, free: 27.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008365/0.5846, allocations: 0.7165 MB / 0.5837 GB, free: 26.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5846, allocations: 0 / 0.5837 GB, free: 26.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001363/0.586, allocations: 0.5039 MB / 0.5841 GB, free: 26.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (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,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.0004122/0.5864, allocations: 399.7 kB / 0.5845 GB, free: 25.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001712/0.5881, allocations: 1.269 MB / 0.5858 GB, free: 24.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.5881, allocations: 0 / 0.5858 GB, free: 24.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004334/0.5886, allocations: 362.4 kB / 0.5861 GB, free: 24.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001367/0.5899, allocations: 261.9 kB / 0.5864 GB, free: 23.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003337/0.5933, allocations: 3.131 MB / 0.5894 GB, free: 20.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004798/0.5938, allocations: 1.169 MB / 0.5906 GB, free: 19.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002044/0.594, allocations: 79.44 kB / 0.5906 GB, free: 19.44 MB / 378.7 MB Notification: Performance of SimCode: time 3.9e-07/0.594, allocations: 0 / 0.5906 GB, free: 19.44 MB / 378.7 MB Notification: Performance of Templates: time 0.02225/0.6163, allocations: 23.87 MB / 0.6139 GB, free: 11.63 MB / 394.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches