Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002286/0.002286, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.193/2.193, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001185/0.001184, allocations: 82.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.265e-05/3.282e-05, allocations: 4 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09972/0.09979, allocations: 47.57 MB / 369.1 MB, free: 2.191 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4399/0.5397, allocations: 98.25 MB / 467.3 MB, free: 11.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003437/0.5401, allocations: 82.2 kB / 467.4 MB, free: 11.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1239/0.664, allocations: 27.61 MB / 495 MB, free: 1.082 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.6641, allocations: 0 / 495 MB, free: 1.082 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001263/0.6642, allocations: 24 kB / 495.1 MB, free: 1.059 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.003617/0.6679, allocations: 1.149 MB / 496.2 MB, free: 15.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/0.668, allocations: 8.031 kB / 496.2 MB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001211/0.6692, allocations: 190.3 kB / 496.4 MB, free: 15.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00272/0.6719, allocations: 0.8483 MB / 497.2 MB, free: 14.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.907e-05/0.672, allocations: 74 kB / 497.3 MB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002295/0.6723, allocations: 96 kB / 497.4 MB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002343/0.6746, allocations: 0.9108 MB / 498.3 MB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.173e-05/0.6747, allocations: 11.83 kB / 498.3 MB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/0.6748, allocations: 40 kB / 498.4 MB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.465e-05/0.6749, allocations: 24 kB / 498.4 MB, free: 13.58 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001929/0.6768, allocations: 0.5819 MB / 499 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009984/0.6869, allocations: 4.169 MB / 0.4914 GB, free: 8.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001451/0.6884, allocations: 356.7 kB / 0.4917 GB, free: 8.234 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003986/0.6888, allocations: 144.8 kB / 0.4918 GB, free: 8.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.633e-05/0.6889, allocations: 4 kB / 0.4918 GB, free: 8.086 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.671e-05/0.6889, allocations: 38.56 kB / 0.4919 GB, free: 8.039 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 3.396e-06/0.689, allocations: 0 / 0.4919 GB, free: 8.039 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.003209/0.6922, allocations: 1.054 MB / 0.4929 GB, free: 6.926 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.234e-05/0.6923, allocations: 89.05 kB / 0.493 GB, free: 6.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001783/0.6941, allocations: 0.745 MB / 0.4937 GB, free: 6.047 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.6942, allocations: 33.7 kB / 0.4937 GB, free: 6.008 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005736/0.6948, allocations: 0.5977 MB / 0.4943 GB, free: 5.402 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/0.6951, allocations: 153.9 kB / 0.4945 GB, free: 5.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.726e-05/0.6951, allocations: 12 kB / 0.4945 GB, free: 5.238 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.6953, allocations: 338.8 kB / 0.4948 GB, free: 4.898 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004541/0.6958, allocations: 145.6 kB / 0.4949 GB, free: 4.758 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006805/0.6965, allocations: 458.7 kB / 0.4954 GB, free: 4.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006028/0.6971, allocations: 223.8 kB / 0.4956 GB, free: 3.941 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.6971, allocations: 4 kB / 0.4956 GB, free: 3.938 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001708/0.6988, allocations: 0.6541 MB / 0.4962 GB, free: 3.273 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001857/0.7007, allocations: 4.092 MB / 0.5002 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.625e-05/0.7008, allocations: 15.94 kB / 0.5003 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003218/0.7011, allocations: 36.84 kB / 0.5003 GB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.7024, allocations: 167.7 kB / 0.5004 GB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.7038, allocations: 1.288 MB / 0.5017 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/0.7051, allocations: 39.86 kB / 0.5017 GB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-05/0.7052, allocations: 32 kB / 0.5018 GB, free: 13.16 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.7052, allocations: 4 kB / 0.5018 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001615/0.7068, allocations: 0.595 MB / 0.5024 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.259e-05/0.7069, allocations: 12.19 kB / 0.5024 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001542/0.7071, allocations: 40.84 kB / 0.5024 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/0.7082, allocations: 163.7 kB / 0.5026 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/0.7096, allocations: 1.284 MB / 0.5038 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006361/0.7102, allocations: 28 kB / 0.5038 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.581e-05/0.7103, allocations: 36 kB / 0.5039 GB, free: 10.86 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0002862/0.7106, allocations: 164.5 kB / 0.504 GB, free: 10.69 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003291/0.711, allocations: 90.97 kB / 0.5041 GB, free: 10.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001333/0.7123, allocations: 399.4 kB / 0.5045 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.7124, allocations: 4 kB / 0.5045 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.7124, allocations: 0 / 0.5045 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.7124, allocations: 0 / 0.5045 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003435/0.7158, allocations: 1.317 MB / 0.5058 GB, free: 8.801 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.007e-05/0.7159, allocations: 4 kB / 0.5058 GB, free: 8.797 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007556/0.7167, allocations: 71.91 kB / 0.5059 GB, free: 8.727 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000167/0.7169, allocations: 25.06 kB / 0.5059 GB, free: 8.699 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.918e-05/0.7169, allocations: 16 kB / 0.5059 GB, free: 8.684 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001383/0.7183, allocations: 1.276 MB / 0.5072 GB, free: 7.273 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.53e-05/0.7184, allocations: 11.91 kB / 0.5072 GB, free: 7.262 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001818/0.7202, allocations: 0.7568 MB / 0.5079 GB, free: 6.418 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005693/0.7208, allocations: 200 kB / 0.5081 GB, free: 6.203 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001581/0.721, allocations: 11.94 kB / 0.5081 GB, free: 6.191 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006808/0.7217, allocations: 23.98 kB / 0.5081 GB, free: 6.168 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.585e-05/0.7218, allocations: 27.92 kB / 0.5082 GB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.08e-05/0.7219, allocations: 8 kB / 0.5082 GB, free: 6.133 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001315/0.7232, allocations: 0.5746 MB / 0.5087 GB, free: 5.543 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7232, allocations: 0 / 0.5087 GB, free: 5.543 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002046/0.7253, allocations: 379.9 kB / 0.5091 GB, free: 5.172 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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.0006788/0.726, allocations: 285.4 kB / 0.5094 GB, free: 4.883 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002435/0.7284, allocations: 0.9336 MB / 0.5103 GB, free: 3.926 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/0.7285, allocations: 0 / 0.5103 GB, free: 3.926 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006271/0.7291, allocations: 268.2 kB / 0.5105 GB, free: 3.652 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002044/0.7312, allocations: 227.9 kB / 0.5107 GB, free: 3.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0045/0.7357, allocations: 1.359 MB / 0.5121 GB, free: 2.012 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009254/0.7367, allocations: 1.048 MB / 0.5131 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003954/0.7371, allocations: 63.44 kB / 0.5132 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of SimCode: time 1.843e-06/0.7371, allocations: 0 / 0.5132 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of Templates: time 0.3171/1.054, allocations: 17.02 MB / 0.5298 GB, free: 115.1 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches