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.001501/0.001501, allocations: 180.4 kB / 16.38 MB, free: 5.766 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.337/1.337, allocations: 223.2 MB / 240.3 MB, free: 11.87 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.0008072/0.0008072, allocations: 94.08 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002801/0.0002803, allocations: 11.94 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2406, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3294/0.5701, allocations: 116.2 MB / 0.5056 GB, free: 101.3 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003299/0.5705, allocations: 88 kB / 0.5057 GB, free: 101.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08593/0.6564, allocations: 39.64 MB / 0.5444 GB, free: 70.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.6565, allocations: 448 / 0.5444 GB, free: 70.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000145/0.6566, allocations: 36 kB / 0.5444 GB, free: 70.3 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.003675/0.6603, allocations: 1.742 MB / 0.5461 GB, free: 68.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.6604, allocations: 12.03 kB / 0.5461 GB, free: 68.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001085/0.6615, allocations: 253.5 kB / 0.5464 GB, free: 68.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002339/0.6638, allocations: 1.063 MB / 0.5474 GB, free: 67.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.957e-05/0.6639, allocations: 111 kB / 0.5475 GB, free: 67.03 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002779/0.6642, allocations: 155.9 kB / 0.5477 GB, free: 66.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002617/0.6668, allocations: 1.411 MB / 0.549 GB, free: 65.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.605e-05/0.6669, allocations: 11.84 kB / 0.5491 GB, free: 65.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.667, allocations: 71.98 kB / 0.5491 GB, free: 65.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.712e-05/0.6671, allocations: 36 kB / 0.5492 GB, free: 65.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001941/0.669, allocations: 0.9751 MB / 0.5501 GB, free: 64.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00871/0.6777, allocations: 6.221 MB / 0.5562 GB, free: 57.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/0.6788, allocations: 0.6599 MB / 0.5568 GB, free: 57.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.202e-05/0.6789, allocations: 8.438 kB / 0.5568 GB, free: 57.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.6789, allocations: 43 kB / 0.5569 GB, free: 57.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 3.036e-06/0.6789, allocations: 0 / 0.5569 GB, free: 57.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.00338/0.6823, allocations: 1.751 MB / 0.5586 GB, free: 55.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.6823, allocations: 85.5 kB / 0.5587 GB, free: 55.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00151/0.6839, allocations: 0.9495 MB / 0.5596 GB, free: 54.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.795e-05/0.6839, allocations: 37.7 kB / 0.5596 GB, free: 54.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004678/0.6844, allocations: 0.8092 MB / 0.5604 GB, free: 53.26 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002736/0.6847, allocations: 205 kB / 0.5606 GB, free: 53.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.617e-05/0.6847, allocations: 20 kB / 0.5606 GB, free: 53.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.6849, allocations: 345.9 kB / 0.561 GB, free: 52.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005507/0.6855, allocations: 245.8 kB / 0.5612 GB, free: 52.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008177/0.6863, allocations: 0.629 MB / 0.5618 GB, free: 51.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007367/0.6871, allocations: 346 kB / 0.5621 GB, free: 51.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.606e-05/0.6871, allocations: 4 kB / 0.5622 GB, free: 51.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002053/0.6892, allocations: 1.011 MB / 0.5631 GB, free: 50.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001598/0.6908, allocations: 5.148 MB / 0.5682 GB, free: 44.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.676e-05/0.6908, allocations: 15.94 kB / 0.5682 GB, free: 44.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001993/0.691, allocations: 44.84 kB / 0.5682 GB, free: 44.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007479/0.6918, allocations: 227.6 kB / 0.5684 GB, free: 44.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009481/0.6927, allocations: 1.299 MB / 0.5697 GB, free: 43.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/0.6938, allocations: 56.14 kB / 0.5698 GB, free: 42.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-05/0.6939, allocations: 48 kB / 0.5698 GB, free: 42.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.6939, allocations: 6.656 kB / 0.5698 GB, free: 42.92 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001187/0.6951, allocations: 0.8149 MB / 0.5706 GB, free: 42.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.221e-05/0.6951, allocations: 16.03 kB / 0.5706 GB, free: 42.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.717e-05/0.6952, allocations: 48.8 kB / 0.5707 GB, free: 42.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006094/0.6958, allocations: 215.7 kB / 0.5709 GB, free: 41.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006022/0.6964, allocations: 1.304 MB / 0.5722 GB, free: 40.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009231/0.6974, allocations: 39.91 kB / 0.5722 GB, free: 40.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-05/0.6975, allocations: 40 kB / 0.5722 GB, free: 40.31 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.0007664/0.6982, allocations: 420.9 kB / 0.5726 GB, free: 39.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002531/0.6985, allocations: 114.6 kB / 0.5727 GB, free: 39.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001121/0.6996, allocations: 0.5787 MB / 0.5733 GB, free: 39.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.6996, allocations: 4 kB / 0.5733 GB, free: 39.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.6996, allocations: 0 / 0.5733 GB, free: 39.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.6997, allocations: 7.984 kB / 0.5733 GB, free: 39.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003111/0.7028, allocations: 1.843 MB / 0.5751 GB, free: 37.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.7028, allocations: 4 kB / 0.5751 GB, free: 37.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004618/0.7033, allocations: 108.1 kB / 0.5752 GB, free: 37.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.353e-05/0.7034, allocations: 24.84 kB / 0.5752 GB, free: 37.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.87e-05/0.7034, allocations: 19.95 kB / 0.5753 GB, free: 37.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006695/0.7041, allocations: 1.276 MB / 0.5765 GB, free: 35.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.7041, allocations: 11.92 kB / 0.5765 GB, free: 35.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.7055, allocations: 1.025 MB / 0.5775 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004642/0.706, allocations: 243.5 kB / 0.5778 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/0.7062, allocations: 16 kB / 0.5778 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000575/0.7068, allocations: 43.97 kB / 0.5778 GB, free: 34.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.87e-05/0.7069, allocations: 32.39 kB / 0.5778 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.03e-05/0.7069, allocations: 19.95 kB / 0.5779 GB, free: 34.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009971/0.7079, allocations: 0.7204 MB / 0.5786 GB, free: 33.47 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7079, allocations: 0 / 0.5786 GB, free: 33.47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001985/0.7099, allocations: 0.5077 MB / 0.5791 GB, free: 32.96 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.0005902/0.7105, allocations: 413.3 kB / 0.5795 GB, free: 32.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002269/0.7128, allocations: 1.262 MB / 0.5807 GB, free: 31.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.7128, allocations: 4.125 kB / 0.5807 GB, free: 31.28 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000474/0.7133, allocations: 357 kB / 0.581 GB, free: 30.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/0.7147, allocations: 252.8 kB / 0.5813 GB, free: 30.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004519/0.7192, allocations: 3.086 MB / 0.5843 GB, free: 27.53 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007433/0.72, allocations: 1.2 MB / 0.5855 GB, free: 26.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000885/0.7209, allocations: 157.2 kB / 0.5856 GB, free: 26.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002486/0.7211, allocations: 79.38 kB / 0.5857 GB, free: 26.07 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.7211, allocations: 0 / 0.5857 GB, free: 26.07 MB / 378.7 MB Notification: Performance of Templates: time 0.02521/0.7464, allocations: 14.89 MB / 0.6002 GB, free: 11.29 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/jenkins/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