Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009556/0.0009557, allocations: 176.1 kB / 17.4 MB, free: 4.301 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.383/1.383, allocations: 223.3 MB / 241.4 MB, free: 11.71 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.0007705/0.0007708, allocations: 97.17 kB / 292.6 MB, free: 10.8 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002963/0.0002963, allocations: 12 kB / 352.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2523, allocations: 50.4 MB / 402.7 MB, free: 32.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2991/0.5515, allocations: 116.4 MB / 0.507 GB, free: 101.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.5518, allocations: 89.75 kB / 0.5071 GB, free: 101.4 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08771/0.6395, allocations: 39.5 MB / 0.5457 GB, free: 70.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.6396, allocations: 0 / 0.5457 GB, free: 70.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001524/0.6398, allocations: 36 kB / 0.5457 GB, free: 70.05 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.003988/0.6438, allocations: 1.716 MB / 0.5474 GB, free: 68.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.6438, allocations: 12.03 kB / 0.5474 GB, free: 68.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/0.6449, allocations: 250.5 kB / 0.5476 GB, free: 68.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002313/0.6472, allocations: 1.11 MB / 0.5487 GB, free: 66.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.597e-05/0.6474, allocations: 111.4 kB / 0.5488 GB, free: 66.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003284/0.6477, allocations: 156.3 kB / 0.549 GB, free: 66.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002387/0.6501, allocations: 1.428 MB / 0.5504 GB, free: 65.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.401e-05/0.6501, allocations: 7.875 kB / 0.5504 GB, free: 65.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-05/0.6503, allocations: 64 kB / 0.5504 GB, free: 65.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.095e-05/0.6503, allocations: 40 kB / 0.5505 GB, free: 65.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001586/0.6519, allocations: 0.9751 MB / 0.5514 GB, free: 64.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006385/0.6583, allocations: 6.221 MB / 0.5575 GB, free: 57.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000987/0.6593, allocations: 0.6638 MB / 0.5581 GB, free: 56.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003479/0.6596, allocations: 242.1 kB / 0.5584 GB, free: 56.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.565e-05/0.6597, allocations: 12.38 kB / 0.5584 GB, free: 56.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.6597, allocations: 39 kB / 0.5584 GB, free: 56.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 2.395e-06/0.6597, allocations: 0 / 0.5584 GB, free: 56.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.002577/0.6623, allocations: 1.75 MB / 0.5601 GB, free: 54.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.6624, allocations: 81.55 kB / 0.5602 GB, free: 54.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001183/0.6635, allocations: 1.08 MB / 0.5613 GB, free: 53.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.257e-05/0.6636, allocations: 41.7 kB / 0.5613 GB, free: 53.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003516/0.6639, allocations: 0.8053 MB / 0.5621 GB, free: 52.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.6641, allocations: 209.1 kB / 0.5623 GB, free: 52.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.892e-05/0.6641, allocations: 20 kB / 0.5623 GB, free: 52.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.818e-05/0.6642, allocations: 341.9 kB / 0.5626 GB, free: 52.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003969/0.6646, allocations: 245.9 kB / 0.5629 GB, free: 51.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005339/0.6651, allocations: 0.6251 MB / 0.5635 GB, free: 51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009263/0.666, allocations: 0.9302 MB / 0.5644 GB, free: 49.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.6661, allocations: 4 kB / 0.5644 GB, free: 49.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001352/0.6674, allocations: 1.022 MB / 0.5654 GB, free: 48.85 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001712/0.6676, allocations: 475.9 kB / 0.5658 GB, free: 48.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.6676, allocations: 16 kB / 0.5659 GB, free: 48.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001474/0.6678, allocations: 44.8 kB / 0.5659 GB, free: 48.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006608/0.6684, allocations: 227.6 kB / 0.5661 GB, free: 47.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000663/0.6691, allocations: 1.296 MB / 0.5674 GB, free: 46.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006325/0.6698, allocations: 55.89 kB / 0.5674 GB, free: 46.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.753e-05/0.6698, allocations: 44 kB / 0.5675 GB, free: 46.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.61e-06/0.6698, allocations: 8.094 kB / 0.5675 GB, free: 46.38 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001011/0.6708, allocations: 0.8105 MB / 0.5683 GB, free: 45.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.6709, allocations: 20 kB / 0.5683 GB, free: 45.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.545e-05/0.671, allocations: 41.44 kB / 0.5683 GB, free: 45.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006065/0.6716, allocations: 223.7 kB / 0.5686 GB, free: 45.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000566/0.6721, allocations: 1.295 MB / 0.5698 GB, free: 43.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005537/0.6727, allocations: 39.98 kB / 0.5699 GB, free: 43.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.366e-05/0.6728, allocations: 47.94 kB / 0.5699 GB, free: 43.77 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.0006575/0.6734, allocations: 416.7 kB / 0.5703 GB, free: 43.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.6736, allocations: 122.4 kB / 0.5704 GB, free: 43.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008974/0.6745, allocations: 0.575 MB / 0.571 GB, free: 42.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.6745, allocations: 12 kB / 0.571 GB, free: 42.63 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.6745, allocations: 0 / 0.571 GB, free: 42.63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.892e-06/0.6745, allocations: 3.984 kB / 0.571 GB, free: 42.63 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002229/0.6767, allocations: 1.839 MB / 0.5728 GB, free: 40.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.6768, allocations: 4 kB / 0.5728 GB, free: 40.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004522/0.6772, allocations: 115.8 kB / 0.5729 GB, free: 40.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.976e-05/0.6773, allocations: 29.06 kB / 0.5729 GB, free: 40.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.6773, allocations: 16 kB / 0.5729 GB, free: 40.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005488/0.6779, allocations: 1.272 MB / 0.5742 GB, free: 39.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.6779, allocations: 4.031 kB / 0.5742 GB, free: 39.13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.6791, allocations: 0.9382 MB / 0.5751 GB, free: 38.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002951/0.6794, allocations: 243.6 kB / 0.5753 GB, free: 37.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.6795, allocations: 12 kB / 0.5754 GB, free: 37.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004628/0.68, allocations: 39.98 kB / 0.5754 GB, free: 37.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.883e-05/0.68, allocations: 44.34 kB / 0.5754 GB, free: 37.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/0.6801, allocations: 16 kB / 0.5755 GB, free: 37.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007994/0.6809, allocations: 0.7164 MB / 0.5761 GB, free: 37.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6809, allocations: 4 kB / 0.5762 GB, free: 37.06 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001429/0.6823, allocations: 0.5077 MB / 0.5766 GB, free: 36.55 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.0004261/0.6827, allocations: 407.5 kB / 0.577 GB, free: 36.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001689/0.6844, allocations: 1.273 MB / 0.5783 GB, free: 34.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.6845, allocations: 4.125 kB / 0.5783 GB, free: 34.85 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000418/0.6849, allocations: 357 kB / 0.5786 GB, free: 34.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001464/0.6864, allocations: 268.3 kB / 0.5789 GB, free: 34.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003603/0.69, allocations: 3.082 MB / 0.5819 GB, free: 31.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/0.6905, allocations: 1.173 MB / 0.583 GB, free: 29.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000739/0.6913, allocations: 157.2 kB / 0.5832 GB, free: 29.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.6914, allocations: 71.44 kB / 0.5833 GB, free: 29.68 MB / 378.7 MB Notification: Performance of SimCode: time 7.41e-07/0.6914, allocations: 0 / 0.5833 GB, free: 29.68 MB / 378.7 MB Notification: Performance of Templates: time 0.02182/0.7133, allocations: 15.13 MB / 0.598 GB, free: 14.67 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches