Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 114.2 kB / 17.07 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 197.4 kB / 18.01 MB, free: 5.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 51.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2631, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003334/0.2665, allocations: 1.973 MB / 402.2 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008908/0.2674, allocations: 0.5064 MB / 402.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.922e-05/0.2675, allocations: 4 kB / 402.7 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.2677, allocations: 23.8 kB / 402.7 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.363e-05/0.2678, allocations: 35.64 kB / 402.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001962/0.268, allocations: 39.95 kB / 402.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002018/0.2682, allocations: 143.4 kB / 403 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001711/0.2684, allocations: 69.5 kB / 403 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.2685, allocations: 75.7 kB / 403.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.2686, allocations: 63.7 kB / 403.2 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.355e-05/0.2687, allocations: 20 kB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.641e-05/0.2687, allocations: 12 kB / 403.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.71e-05/0.2688, allocations: 27.92 kB / 403.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.768e-05/0.2688, allocations: 71.67 kB / 403.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002462/0.2691, allocations: 169.7 kB / 403.4 MB, free: 5.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2691, allocations: 0 / 403.4 MB, free: 5.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.2691, allocations: 4 kB / 403.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.2691, allocations: 0 / 403.5 MB, free: 5.562 MB / 318.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.0006682/0.2698, allocations: 446.8 kB / 403.9 MB, free: 5.078 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.2698, allocations: 8.031 kB / 403.9 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.777e-05/0.2699, allocations: 54.67 kB / 404 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.945e-05/0.27, allocations: 16.84 kB / 404 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002649/0.2702, allocations: 196.2 kB / 404.2 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.2703, allocations: 12.38 kB / 404.2 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.742e-05/0.2703, allocations: 16.33 kB / 404.2 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003069/0.2706, allocations: 154.7 kB / 404.3 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.2706, allocations: 4 kB / 404.3 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.2707, allocations: 12 kB / 404.4 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-06/0.2707, allocations: 4 kB / 404.4 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002226/0.2709, allocations: 91.69 kB / 404.4 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008528/0.2718, allocations: 0.525 MB / 405 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001785/0.272, allocations: 86.53 kB / 405.1 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.508e-05/0.272, allocations: 21.05 kB / 405.1 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.2721, allocations: 7.938 kB / 405.1 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.2721, allocations: 38.55 kB / 405.1 MB, free: 3.715 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.963e-06/0.2721, allocations: 0 / 405.1 MB, free: 3.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.001124/0.2732, allocations: 0.5916 MB / 405.7 MB, free: 3.031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.2733, allocations: 55.34 kB / 405.8 MB, free: 2.965 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.2735, allocations: 133.8 kB / 405.9 MB, free: 2.824 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.2735, allocations: 25.7 kB / 405.9 MB, free: 2.793 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.774e-05/0.2736, allocations: 136.1 kB / 406.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.777e-05/0.2736, allocations: 43.83 kB / 406.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.822e-05/0.2737, allocations: 37.7 kB / 406.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.2738, allocations: 326.7 kB / 406.5 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.531e-05/0.2739, allocations: 35.97 kB / 406.5 MB, free: 2.207 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.2741, allocations: 82.81 kB / 406.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002061/0.2743, allocations: 134.7 kB / 406.7 MB, free: 1.945 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.2743, allocations: 4 kB / 406.7 MB, free: 1.941 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002757/0.2746, allocations: 153.5 kB / 406.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.2746, allocations: 4 kB / 406.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.2746, allocations: 7.984 kB / 406.9 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.2746, allocations: 0 / 406.9 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.2748, allocations: 51.84 kB / 406.9 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.423e-06/0.2748, allocations: 0 / 406.9 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.884e-05/0.2749, allocations: 8.188 kB / 406.9 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.2749, allocations: 8 kB / 406.9 MB, free: 1.707 MB / 318.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.0001174/0.275, allocations: 129.7 kB / 407.1 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.907e-05/0.2751, allocations: 7.953 kB / 407.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.924e-05/0.2751, allocations: 16.36 kB / 407.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.2751, allocations: 3.938 kB / 407.1 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2751, allocations: 3.938 kB / 407.1 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2752, allocations: 0 / 407.1 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006088/0.2758, allocations: 456 kB / 407.5 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2758, allocations: 192 / 407.5 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001291/0.2759, allocations: 27.98 kB / 407.6 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.2759, allocations: 3.938 kB / 407.6 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.2759, allocations: 4 kB / 407.6 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.2759, allocations: 0 / 407.6 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.276, allocations: 0 / 407.6 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003602/0.2763, allocations: 255.1 kB / 407.8 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.266e-05/0.2764, allocations: 85.09 kB / 407.9 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.2764, allocations: 4 kB / 407.9 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.921e-05/0.2765, allocations: 4 kB / 407.9 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.062e-05/0.2765, allocations: 8.047 kB / 407.9 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-06/0.2766, allocations: 15.94 kB / 407.9 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.797e-05/0.2766, allocations: 95.27 kB / 408 MB, free: 0.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2766, allocations: 0 / 408 MB, free: 0.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002612/0.2769, allocations: 24 kB / 408.1 MB, free: 488 kB / 318.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.0007675/0.2777, allocations: 0.7881 MB / 408.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002422/0.2779, allocations: 91.84 kB / 408.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2779, allocations: 0 / 408.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.576e-05/0.278, allocations: 40.41 kB / 409 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.2784, allocations: 16.06 kB / 409 MB, free: 15.51 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00222/0.2806, allocations: 1.857 MB / 410.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.2809, allocations: 0.7119 MB / 411.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.229e-05/0.281, allocations: 8.891 kB / 411.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.892e-05/0.2811, allocations: 39.42 kB / 411.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2811, allocations: 3.938 kB / 411.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02459/0.3057, allocations: 2.394 MB / 414 MB, free: 10.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.205/8.51, allocations: 14.11 kB / 414 MB, free: 10.4 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches