Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.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.Sensors,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001397/0.001397, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00145/0.00145, allocations: 205.2 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.43/1.43, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002202/0.002202, allocations: 67.88 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2813, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003547/0.2849, allocations: 1.982 MB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.2861, allocations: 0.5804 MB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.2863, allocations: 0 / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.2865, allocations: 27.72 kB / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001075/0.2866, allocations: 31.7 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002737/0.2869, allocations: 51.89 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002404/0.2871, allocations: 151.4 kB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.2873, allocations: 73.5 kB / 411.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001858/0.2875, allocations: 71.7 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.2876, allocations: 67.7 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.124e-05/0.2877, allocations: 20 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.966e-05/0.2877, allocations: 16 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.796e-05/0.2878, allocations: 35.91 kB / 411.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.5e-05/0.2879, allocations: 75.59 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002716/0.2882, allocations: 166.3 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2882, allocations: 0 / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2882, allocations: 0 / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.2882, allocations: 0 / 412.1 MB, free: 14.18 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0007152/0.2889, allocations: 450.7 kB / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.969e-05/0.289, allocations: 12.03 kB / 412.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.576e-05/0.2891, allocations: 50.73 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.2892, allocations: 24.83 kB / 412.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003295/0.2896, allocations: 204.1 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.2896, allocations: 16.38 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.448e-05/0.2897, allocations: 20.31 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003073/0.29, allocations: 141.5 kB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.29, allocations: 7.953 kB / 413 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.29, allocations: 4 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.29, allocations: 4 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002257/0.2903, allocations: 87.94 kB / 413.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009017/0.2912, allocations: 0.5214 MB / 413.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001693/0.2914, allocations: 82.48 kB / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.712e-05/0.2915, allocations: 28.84 kB / 413.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.2915, allocations: 4 kB / 413.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.2915, allocations: 30.56 kB / 413.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.482e-06/0.2915, allocations: 3.938 kB / 413.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0011/0.2926, allocations: 0.5987 MB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/0.2927, allocations: 63.28 kB / 414.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.2929, allocations: 130.1 kB / 414.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.2929, allocations: 25.7 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.293, allocations: 140.1 kB / 414.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.084e-05/0.293, allocations: 51.58 kB / 414.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.618e-05/0.2931, allocations: 29.72 kB / 414.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.2933, allocations: 322.8 kB / 415.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.961e-05/0.2934, allocations: 31.98 kB / 415.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.2935, allocations: 93.25 kB / 415.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000218/0.2937, allocations: 131.8 kB / 415.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2937, allocations: 0 / 415.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002987/0.294, allocations: 157.3 kB / 415.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.2941, allocations: 8 kB / 415.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2941, allocations: 0 / 415.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.2941, allocations: 4 kB / 415.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001823/0.2943, allocations: 39.86 kB / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.2943, allocations: 4.188 kB / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.051e-05/0.2944, allocations: 15.98 kB / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.2944, allocations: 4 kB / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 19 * 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.0001276/0.2945, allocations: 133.7 kB / 415.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.425e-05/0.2946, allocations: 7.953 kB / 415.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.299e-05/0.2946, allocations: 16.75 kB / 415.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.2946, allocations: 3.938 kB / 415.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2947, allocations: 0 / 415.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.2947, allocations: 3.984 kB / 415.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006227/0.2953, allocations: 440 kB / 416.2 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2953, allocations: 7.984 kB / 416.2 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001437/0.2955, allocations: 31.92 kB / 416.2 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.2955, allocations: 0 / 416.2 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.2955, allocations: 0 / 416.2 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.2955, allocations: 4 kB / 416.2 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2955, allocations: 0 / 416.2 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003746/0.2959, allocations: 249.1 kB / 416.5 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.666e-05/0.296, allocations: 93.03 kB / 416.5 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.392e-05/0.296, allocations: 4 kB / 416.6 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.582e-05/0.2961, allocations: 4 kB / 416.6 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.224e-05/0.2961, allocations: 15.98 kB / 416.6 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.2962, allocations: 8 kB / 416.6 MB, free: 9.191 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.456e-05/0.2962, allocations: 98.5 kB / 416.7 MB, free: 9.098 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2962, allocations: 0 / 416.7 MB, free: 9.098 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000279/0.2965, allocations: 24 kB / 416.7 MB, free: 9.074 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.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 (11): * Single equations (assignments): 11 * 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.00072/0.2973, allocations: 0.788 MB / 417.5 MB, free: 8.258 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002553/0.2975, allocations: 96.11 kB / 417.6 MB, free: 8.164 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.2975, allocations: 0 / 417.6 MB, free: 8.164 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.991e-05/0.2976, allocations: 48.41 kB / 417.6 MB, free: 8.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.298, allocations: 15.92 kB / 417.6 MB, free: 8.102 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002398/0.3004, allocations: 1.868 MB / 419.5 MB, free: 6.102 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.3008, allocations: 0.7196 MB / 420.2 MB, free: 5.355 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.518e-05/0.3009, allocations: 8.875 kB / 420.2 MB, free: 5.344 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.742e-05/0.3009, allocations: 43.42 kB / 420.3 MB, free: 5.301 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.301, allocations: 0 / 420.3 MB, free: 5.301 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02847/0.3294, allocations: 2.403 MB / 422.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.144/8.474, allocations: 7.234 kB / 422.7 MB, free: 2.98 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors_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_Sensors.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches