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.001717/0.001717, allocations: 196.3 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 226.5 MB / 244.7 MB, free: 6.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008147/0.0008145, allocations: 105.7 kB / 296.8 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002972/0.0002974, allocations: 4 kB / 356.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2104, allocations: 51.29 MB / 408 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.002318/0.2128, allocations: 3.034 MB / 411.1 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.2138, allocations: 0.8851 MB / 412 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.214, allocations: 8 kB / 412 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001283/0.2141, allocations: 59.47 kB / 412 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001796/0.2143, allocations: 122.1 kB / 412.1 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.2146, allocations: 113.5 kB / 412.3 MB, free: 23.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.215, allocations: 0.552 MB / 412.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002201/0.2152, allocations: 160.6 kB / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002113/0.2154, allocations: 199.3 kB / 413.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001867/0.2156, allocations: 247 kB / 413.4 MB, free: 22.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.273e-05/0.2157, allocations: 24 kB / 413.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.182e-05/0.2158, allocations: 32 kB / 413.5 MB, free: 22.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.24e-05/0.2158, allocations: 83.66 kB / 413.5 MB, free: 22.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001489/0.216, allocations: 256.6 kB / 413.8 MB, free: 21.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002794/0.2163, allocations: 435.7 kB / 414.2 MB, free: 21.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.2163, allocations: 0 / 414.2 MB, free: 21.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2163, allocations: 4 kB / 414.2 MB, free: 21.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.2163, allocations: 0 / 414.2 MB, free: 21.47 MB / 298.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.001221/0.2175, allocations: 0.7914 MB / 415 MB, free: 20.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.2176, allocations: 12.03 kB / 415 MB, free: 20.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000181/0.2178, allocations: 68.27 kB / 415.1 MB, free: 20.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.2181, allocations: 327.2 kB / 415.4 MB, free: 20.19 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.2181, allocations: 37.38 kB / 415.4 MB, free: 20.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.686e-05/0.2182, allocations: 48.38 kB / 415.5 MB, free: 20.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007869/0.219, allocations: 474.6 kB / 416 MB, free: 19.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/0.219, allocations: 11.91 kB / 416 MB, free: 19.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.037e-05/0.2191, allocations: 19.94 kB / 416 MB, free: 19.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.2191, allocations: 8 kB / 416 MB, free: 19.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008729/0.2199, allocations: 495.7 kB / 416.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.2218, allocations: 1.398 MB / 417.9 MB, free: 17.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007424/0.2225, allocations: 0.552 MB / 418.4 MB, free: 17.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006532/0.2232, allocations: 387.8 kB / 418.8 MB, free: 16.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.331e-05/0.2232, allocations: 12.56 kB / 418.8 MB, free: 16.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.562e-05/0.2233, allocations: 35.12 kB / 418.8 MB, free: 16.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 2.475e-06/0.2233, allocations: 0 / 418.8 MB, free: 16.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=103): time 0.005858/0.2291, allocations: 3.298 MB / 422.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.2292, allocations: 72.34 kB / 422.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.2294, allocations: 247 kB / 422.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.471e-05/0.2294, allocations: 45.69 kB / 422.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.878e-05/0.2295, allocations: 193.2 kB / 422.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.2296, allocations: 342.9 kB / 423 MB, free: 12.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/0.2297, allocations: 20 kB / 423 MB, free: 12.33 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.119e-05/0.2297, allocations: 362.8 kB / 423.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004942/0.2302, allocations: 289.9 kB / 423.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005162/0.2307, allocations: 361.4 kB / 424 MB, free: 11.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.2318, allocations: 0.6546 MB / 424.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2318, allocations: 0 / 424.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001185/0.233, allocations: 0.8171 MB / 425.5 MB, free: 9.836 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.233, allocations: 4 kB / 425.5 MB, free: 9.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.233, allocations: 0 / 425.5 MB, free: 9.832 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.233, allocations: 11.94 kB / 425.5 MB, free: 9.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006919/0.2337, allocations: 215.8 kB / 425.7 MB, free: 9.609 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.2338, allocations: 7.938 kB / 425.7 MB, free: 9.602 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002948/0.2341, allocations: 67.95 kB / 425.8 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.043e-05/0.2341, allocations: 24 kB / 425.8 MB, free: 9.512 MB / 298.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.0001714/0.2343, allocations: 197 kB / 426 MB, free: 9.312 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.94e-05/0.2344, allocations: 55.34 kB / 426.1 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/0.2345, allocations: 77.33 kB / 426.2 MB, free: 9.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.2345, allocations: 8 kB / 426.2 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.2345, allocations: 7.938 kB / 426.2 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.2345, allocations: 3.984 kB / 426.2 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002335/0.2369, allocations: 2.041 MB / 428.2 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.2369, allocations: 4 kB / 428.2 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006853/0.2376, allocations: 211.7 kB / 428.4 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.213e-06/0.2376, allocations: 8 kB / 428.4 MB, free: 6.785 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.19e-05/0.2376, allocations: 35.92 kB / 428.5 MB, free: 6.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.154e-06/0.2377, allocations: 15.92 kB / 428.5 MB, free: 6.734 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.2377, allocations: 8.031 kB / 428.5 MB, free: 6.727 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00172/0.2394, allocations: 1.415 MB / 429.9 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.712e-05/0.2395, allocations: 132.5 kB / 430 MB, free: 5.09 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.137e-05/0.2395, allocations: 27.94 kB / 430.1 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003433/0.2399, allocations: 59.95 kB / 430.1 MB, free: 5.004 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.227e-05/0.24, allocations: 76.8 kB / 430.2 MB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.958e-05/0.24, allocations: 31.98 kB / 430.2 MB, free: 4.898 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001044/0.2401, allocations: 174 kB / 430.4 MB, free: 4.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2401, allocations: 0 / 430.4 MB, free: 4.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004025/0.2405, allocations: 156 kB / 430.6 MB, free: 4.578 MB / 298.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.0001363/0.2407, allocations: 139.7 kB / 430.7 MB, free: 4.438 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001861/0.2426, allocations: 0.7543 MB / 431.4 MB, free: 3.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.2426, allocations: 4 kB / 431.4 MB, free: 3.676 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/0.2437, allocations: 462.6 kB / 431.9 MB, free: 3.227 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/0.245, allocations: 118.2 kB / 432 MB, free: 3.113 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003165/0.2482, allocations: 1.862 MB / 433.9 MB, free: 1.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.2485, allocations: 0.8803 MB / 434.8 MB, free: 260 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003007/0.2488, allocations: 67.41 kB / 434.8 MB, free: 196 kB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.2488, allocations: 3.938 kB / 434.8 MB, free: 192 kB / 298.7 MB Notification: Performance of Templates: time 0.01477/0.2636, allocations: 7.159 MB / 442 MB, free: 9.031 MB / 314.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/jenkins/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