Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001587/0.001587, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001779/0.001779, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00179/0.001791, allocations: 67.88 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2806, allocations: 50.53 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003718/0.2843, allocations: 2.264 MB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004229/0.2848, allocations: 195.3 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.372e-05/0.2849, allocations: 4 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.177e-05/0.285, allocations: 35.64 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001488/0.2851, allocations: 67.36 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001837/0.2853, allocations: 47.94 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002509/0.2856, allocations: 239 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002313/0.2858, allocations: 114.5 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.2859, allocations: 83.72 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001603/0.2861, allocations: 107.5 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.486e-05/0.2861, allocations: 20 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.741e-05/0.2862, allocations: 20 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.179e-05/0.2862, allocations: 47.84 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.2864, allocations: 111.5 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000329/0.2867, allocations: 258 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2867, allocations: 0 / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2867, allocations: 0 / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.2867, allocations: 0 / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0008414/0.2876, allocations: 0.5068 MB / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.2876, allocations: 12.03 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.269e-05/0.2877, allocations: 58.72 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.331e-05/0.2878, allocations: 24.8 kB / 412.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002655/0.288, allocations: 235.9 kB / 413.2 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.743e-05/0.2881, allocations: 16.94 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.671e-05/0.2881, allocations: 24.38 kB / 413.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003998/0.2885, allocations: 232.8 kB / 413.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.2886, allocations: 7.938 kB / 413.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.346e-05/0.2886, allocations: 8 kB / 413.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.2886, allocations: 8 kB / 413.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002441/0.2889, allocations: 139.8 kB / 413.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.2901, allocations: 0.8519 MB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002407/0.2903, allocations: 159.7 kB / 414.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.707e-05/0.2904, allocations: 58.56 kB / 414.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.531e-05/0.2905, allocations: 11.92 kB / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.559e-05/0.2905, allocations: 38.5 kB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.273e-06/0.2905, allocations: 3.938 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003815/0.2909, allocations: 170 kB / 414.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.805e-05/0.291, allocations: 106.8 kB / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001997/0.2912, allocations: 203.5 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.2912, allocations: 29.7 kB / 415.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.2914, allocations: 172.1 kB / 415.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.514e-05/0.2914, allocations: 63.44 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.691e-05/0.2915, allocations: 49.98 kB / 415.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.2917, allocations: 326.8 kB / 415.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.543e-05/0.2918, allocations: 52.53 kB / 415.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.292, allocations: 151.6 kB / 416 MB, free: 9.914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003053/0.2923, allocations: 225.5 kB / 416.2 MB, free: 9.645 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2923, allocations: 0 / 416.2 MB, free: 9.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003724/0.2927, allocations: 258.1 kB / 416.5 MB, free: 9.387 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.2927, allocations: 4 kB / 416.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.2927, allocations: 4 kB / 416.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.2927, allocations: 8 kB / 416.5 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002072/0.2929, allocations: 55.91 kB / 416.6 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.293, allocations: 11.94 kB / 416.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.2931, allocations: 23.84 kB / 416.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.2931, allocations: 16 kB / 416.6 MB, free: 9.266 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001572/0.2933, allocations: 137.8 kB / 416.7 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.528e-05/0.2934, allocations: 23.84 kB / 416.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.504e-05/0.2934, allocations: 25.39 kB / 416.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.2934, allocations: 0 / 416.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.819e-06/0.2934, allocations: 4 kB / 416.8 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.2935, allocations: 0 / 416.8 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005676/0.294, allocations: 424.8 kB / 417.2 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.294, allocations: 8.031 kB / 417.2 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/0.2942, allocations: 39.92 kB / 417.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.2943, allocations: 4 kB / 417.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.2943, allocations: 4 kB / 417.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.2943, allocations: 4 kB / 417.3 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.2943, allocations: 4 kB / 417.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003967/0.2947, allocations: 388.6 kB / 417.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.525e-05/0.2948, allocations: 97.05 kB / 417.7 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.657e-05/0.2948, allocations: 7.938 kB / 417.7 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.295, allocations: 4 kB / 417.8 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.024e-05/0.295, allocations: 15.92 kB / 417.8 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.798e-06/0.295, allocations: 8 kB / 417.8 MB, free: 7.973 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001218/0.2951, allocations: 139.2 kB / 417.9 MB, free: 7.836 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2951, allocations: 0 / 417.9 MB, free: 7.836 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000349/0.2955, allocations: 55.89 kB / 418 MB, free: 7.781 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.v) * 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 (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007155/0.2962, allocations: 0.9054 MB / 418.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000268/0.2965, allocations: 143.8 kB / 419 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2965, allocations: 0 / 419 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.326e-05/0.2966, allocations: 52.8 kB / 419.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005104/0.2971, allocations: 34.61 kB / 419.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002855/0.3, allocations: 2.553 MB / 421.6 MB, free: 3.859 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003612/0.3003, allocations: 0.7359 MB / 422.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.726e-05/0.3004, allocations: 17.95 kB / 422.4 MB, free: 3.082 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.139e-05/0.3005, allocations: 59.42 kB / 422.5 MB, free: 3.023 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3005, allocations: 0 / 422.5 MB, free: 3.023 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0272/0.3277, allocations: 3.748 MB / 426.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.823/8.151, allocations: 14.06 kB / 426.2 MB, free: 15.37 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches