Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.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.Mechanics.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|friction.v_rel|innerContactA.s_rel|innerContactB.s_rel|outerContactA.v_rel|outerContactB.s_rel|outerContactB.v_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad") translateModel(Modelica.Mechanics.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|friction.v_rel|innerContactA.s_rel|innerContactB.s_rel|outerContactA.v_rel|outerContactB.s_rel|outerContactB.v_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.007132/0.007132, allocations: 195.4 kB / 18.06 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.763/2.763, allocations: 226.5 MB / 245.4 MB, free: 8.273 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001131/0.001132, allocations: 93.84 kB / 297.4 MB, free: 6.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004093/0.0004094, allocations: 4 kB / 357.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3936/0.394, allocations: 51.29 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1653/0.5594, allocations: 79.85 MB / 488.5 MB, free: 11.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/0.5598, allocations: 71.95 kB / 488.6 MB, free: 11.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04001/0.5998, allocations: 9.641 MB / 498.2 MB, free: 2.059 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.328e-06/0.5999, allocations: 4.219 kB / 498.2 MB, free: 2.055 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.64e-05/0.6, allocations: 8 kB / 498.2 MB, free: 2.047 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.002974/0.603, allocations: 0.7643 MB / 499 MB, free: 1.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.642e-05/0.6031, allocations: 8.031 kB / 499 MB, free: 1.223 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005133/0.6036, allocations: 60.38 kB / 499.1 MB, free: 1.164 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008438/0.6045, allocations: 315.2 kB / 499.4 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.106e-05/0.6046, allocations: 37.38 kB / 499.4 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002122/0.6048, allocations: 52.27 kB / 499.5 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00187/0.6067, allocations: 470.9 kB / 499.9 MB, free: 276 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.618e-05/0.6068, allocations: 4.188 kB / 499.9 MB, free: 272 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.842e-05/0.6069, allocations: 19.94 kB / 499.9 MB, free: 252 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.665e-05/0.6069, allocations: 12 kB / 499.9 MB, free: 240 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002852/0.6098, allocations: 491.8 kB / 0.4887 GB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004428/0.6142, allocations: 1.401 MB / 0.4901 GB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001626/0.6159, allocations: 0.552 MB / 0.4906 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001246/0.6172, allocations: 407.6 kB / 0.491 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.342e-05/0.6173, allocations: 12.55 kB / 0.491 GB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.158e-05/0.6174, allocations: 35.12 kB / 0.491 GB, free: 13.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 6.943e-06/0.6174, allocations: 0 / 0.491 GB, free: 13.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=103): time 0.0127/0.6301, allocations: 3.294 MB / 0.4943 GB, free: 9.887 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.814e-05/0.6303, allocations: 68.33 kB / 0.4943 GB, free: 9.809 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004583/0.6308, allocations: 247 kB / 0.4946 GB, free: 9.562 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.833e-05/0.6308, allocations: 41.7 kB / 0.4946 GB, free: 9.516 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.631, allocations: 193.2 kB / 0.4948 GB, free: 9.324 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004358/0.6315, allocations: 350.8 kB / 0.4951 GB, free: 8.977 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.48e-05/0.6316, allocations: 20 kB / 0.4951 GB, free: 8.957 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002181/0.6318, allocations: 370.8 kB / 0.4955 GB, free: 8.586 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.6328, allocations: 285.8 kB / 0.4958 GB, free: 8.305 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.634, allocations: 365.4 kB / 0.4961 GB, free: 7.941 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002051/0.636, allocations: 0.6546 MB / 0.4967 GB, free: 7.281 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.6361, allocations: 0 / 0.4967 GB, free: 7.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.00259/0.6387, allocations: 0.8133 MB / 0.4975 GB, free: 6.457 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/0.6387, allocations: 6.656 kB / 0.4976 GB, free: 6.453 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.6387, allocations: 0 / 0.4976 GB, free: 6.453 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.845e-05/0.6388, allocations: 4 kB / 0.4976 GB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/0.6401, allocations: 227.6 kB / 0.4978 GB, free: 6.227 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.518e-05/0.6401, allocations: 7.984 kB / 0.4978 GB, free: 6.219 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006778/0.6408, allocations: 55.97 kB / 0.4978 GB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.433e-05/0.6409, allocations: 31.92 kB / 0.4979 GB, free: 6.133 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004829/0.6414, allocations: 197.7 kB / 0.4981 GB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002011/0.6416, allocations: 51.44 kB / 0.4981 GB, free: 5.879 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002884/0.6419, allocations: 69.39 kB / 0.4982 GB, free: 5.805 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/0.6419, allocations: 15.94 kB / 0.4982 GB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-05/0.642, allocations: 0 / 0.4982 GB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.642, allocations: 3.984 kB / 0.4982 GB, free: 5.785 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004814/0.6468, allocations: 2.045 MB / 0.5002 GB, free: 3.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.585e-05/0.6469, allocations: 4 kB / 0.5002 GB, free: 3.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/0.648, allocations: 216.3 kB / 0.5004 GB, free: 3.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.602e-05/0.6481, allocations: 8 kB / 0.5004 GB, free: 3.402 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.234e-05/0.6482, allocations: 28 kB / 0.5004 GB, free: 3.375 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.847e-05/0.6482, allocations: 15.92 kB / 0.5004 GB, free: 3.359 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.891e-05/0.6482, allocations: 7.938 kB / 0.5004 GB, free: 3.352 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003271/0.6515, allocations: 1.415 MB / 0.5018 GB, free: 1.863 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002513/0.6518, allocations: 128.4 kB / 0.502 GB, free: 1.719 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.6519, allocations: 20.06 kB / 0.502 GB, free: 1.699 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006149/0.6525, allocations: 71.89 kB / 0.502 GB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.6527, allocations: 72.78 kB / 0.5021 GB, free: 1.559 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.63e-05/0.6528, allocations: 39.94 kB / 0.5021 GB, free: 1.52 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002993/0.6532, allocations: 174 kB / 0.5023 GB, free: 1.348 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6532, allocations: 0 / 0.5023 GB, free: 1.348 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008379/0.654, allocations: 156 kB / 0.5025 GB, free: 1.195 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 103 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002787/0.6543, allocations: 135 kB / 0.5026 GB, free: 1.055 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002063/0.6564, allocations: 0.7582 MB / 0.5033 GB, free: 300 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.6564, allocations: 4 kB / 0.5033 GB, free: 296 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3272/0.9836, allocations: 455.8 kB / 0.5038 GB, free: 96.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002579/0.9863, allocations: 109.2 kB / 0.5039 GB, free: 96.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007227/0.9935, allocations: 1.874 MB / 0.5057 GB, free: 95.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009889/0.9946, allocations: 0.8653 MB / 0.5065 GB, free: 94.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006318/0.9953, allocations: 61.89 kB / 0.5066 GB, free: 94.52 MB / 378.7 MB Notification: Performance of SimCode: time 2.805e-06/0.9953, allocations: 4 kB / 0.5066 GB, free: 94.52 MB / 378.7 MB Notification: Performance of Templates: time 0.02806/1.023, allocations: 7.165 MB / 0.5136 GB, free: 93.69 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches