Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.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.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001026/0.001026, allocations: 191.8 kB / 17.37 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007486/0.0007483, allocations: 97.22 kB / 296.8 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002256/0.0002257, allocations: 4 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2074, allocations: 51.29 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.001821/0.2093, allocations: 2.199 MB / 410.2 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005266/0.2098, allocations: 365.8 kB / 410.6 MB, free: 25.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.21, allocations: 7.938 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001131/0.2101, allocations: 35.7 kB / 410.6 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001221/0.2102, allocations: 86.17 kB / 410.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.2105, allocations: 64.55 kB / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002359/0.2107, allocations: 346.4 kB / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.2109, allocations: 99.16 kB / 411.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.211, allocations: 119.6 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001708/0.2112, allocations: 143.4 kB / 411.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.447e-05/0.2112, allocations: 16 kB / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.974e-05/0.2113, allocations: 16 kB / 411.5 MB, free: 24.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.629e-05/0.2113, allocations: 55.75 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001004/0.2114, allocations: 165 kB / 411.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000169/0.2116, allocations: 268.2 kB / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2116, allocations: 0 / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2116, allocations: 0 / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.2116, allocations: 0 / 412 MB, free: 23.77 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0007962/0.2124, allocations: 0.6003 MB / 412.6 MB, free: 23.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.2125, allocations: 8.031 kB / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.699e-05/0.2125, allocations: 36.56 kB / 412.6 MB, free: 23.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000216/0.2128, allocations: 263.6 kB / 412.9 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/0.2128, allocations: 20.94 kB / 412.9 MB, free: 22.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.716e-05/0.2128, allocations: 28.38 kB / 412.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000448/0.2133, allocations: 281.4 kB / 413.2 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.2133, allocations: 12.09 kB / 413.2 MB, free: 22.44 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.577e-05/0.2134, allocations: 11.94 kB / 413.2 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.2134, allocations: 8 kB / 413.2 MB, free: 22.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004835/0.2139, allocations: 282.1 kB / 413.5 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009894/0.2149, allocations: 0.7952 MB / 414.3 MB, free: 21.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000527/0.2154, allocations: 375 kB / 414.7 MB, free: 20.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002923/0.2157, allocations: 209.6 kB / 414.9 MB, free: 20.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.036e-05/0.2158, allocations: 7.984 kB / 414.9 MB, free: 20.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.2158, allocations: 46.55 kB / 414.9 MB, free: 20.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.723e-06/0.2158, allocations: 0 / 414.9 MB, free: 20.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=63): time 0.003443/0.2192, allocations: 2.029 MB / 417 MB, free: 18.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.2193, allocations: 59.97 kB / 417 MB, free: 18.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.2194, allocations: 195 kB / 417.2 MB, free: 18.26 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.2194, allocations: 33.7 kB / 417.2 MB, free: 18.22 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.411e-05/0.2195, allocations: 145.1 kB / 417.4 MB, free: 18.08 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.975e-05/0.2196, allocations: 216.7 kB / 417.6 MB, free: 17.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.158e-05/0.2196, allocations: 12 kB / 417.6 MB, free: 17.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.439e-05/0.2197, allocations: 346.7 kB / 417.9 MB, free: 17.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002735/0.22, allocations: 169 kB / 418.1 MB, free: 17.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002619/0.2202, allocations: 184.8 kB / 418.3 MB, free: 17.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005528/0.2208, allocations: 388 kB / 418.7 MB, free: 16.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.2208, allocations: 0 / 418.7 MB, free: 16.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0006756/0.2215, allocations: 494.6 kB / 419.2 MB, free: 16.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.2215, allocations: 8 kB / 419.2 MB, free: 16.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.2215, allocations: 0 / 419.2 MB, free: 16.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.2215, allocations: 0 / 419.2 MB, free: 16.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004243/0.222, allocations: 135.8 kB / 419.3 MB, free: 16.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.222, allocations: 3.984 kB / 419.3 MB, free: 16.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/0.2222, allocations: 31.98 kB / 419.3 MB, free: 16.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.2222, allocations: 19.94 kB / 419.3 MB, free: 16.09 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0001338/0.2223, allocations: 157.7 kB / 419.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.025e-05/0.2224, allocations: 31.62 kB / 419.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.391e-05/0.2225, allocations: 55.33 kB / 419.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.2225, allocations: 4 kB / 419.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.2225, allocations: 0 / 419.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.2225, allocations: 3.984 kB / 419.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001559/0.2241, allocations: 1.344 MB / 420.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.2241, allocations: 4 kB / 420.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004187/0.2245, allocations: 124.4 kB / 421.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.2246, allocations: 15.94 kB / 421.1 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.993e-05/0.2246, allocations: 19.98 kB / 421.1 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.663e-06/0.2246, allocations: 11.94 kB / 421.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.2246, allocations: 4 kB / 421.1 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.2256, allocations: 0.894 MB / 422 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.296e-05/0.2257, allocations: 116.7 kB / 422.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.225e-05/0.2257, allocations: 16 kB / 422.1 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.226, allocations: 35.98 kB / 422.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.42e-05/0.2261, allocations: 47.81 kB / 422.2 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-05/0.2261, allocations: 24 kB / 422.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.253e-05/0.2262, allocations: 144.6 kB / 422.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2262, allocations: 0 / 422.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003416/0.2265, allocations: 92 kB / 422.5 MB, free: 12.75 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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.0001206/0.2267, allocations: 123 kB / 422.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006736/0.2273, allocations: 458.6 kB / 423 MB, free: 12.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2274, allocations: 0 / 423 MB, free: 12.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003466/0.2277, allocations: 256.3 kB / 423.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00063/0.2283, allocations: 83.16 kB / 423.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.2296, allocations: 1.237 MB / 424.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001704/0.2298, allocations: 0.7935 MB / 425.4 MB, free: 9.707 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.23, allocations: 43.42 kB / 425.4 MB, free: 9.664 MB / 298.7 MB Notification: Performance of SimCode: time 4.8e-07/0.23, allocations: 0 / 425.4 MB, free: 9.664 MB / 298.7 MB Notification: Performance of Templates: time 0.005037/0.235, allocations: 4.49 MB / 429.9 MB, free: 5.188 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches