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.001159/0.001159, allocations: 109.4 kB / 17.06 MB, free: 5.965 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.001184/0.001184, allocations: 200 kB / 18.01 MB, free: 5.047 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.271/1.271, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 43.94 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2534, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003173/0.2566, allocations: 1.979 MB / 402.2 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008806/0.2575, allocations: 0.4986 MB / 402.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.2576, allocations: 4 kB / 402.7 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001447/0.2578, allocations: 23.78 kB / 402.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.764e-05/0.2579, allocations: 35.64 kB / 402.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000218/0.2581, allocations: 47.94 kB / 402.8 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002018/0.2583, allocations: 147.4 kB / 403 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.2585, allocations: 65.52 kB / 403 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.2586, allocations: 63.72 kB / 403.1 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.2588, allocations: 67.7 kB / 403.1 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.701e-05/0.2588, allocations: 12 kB / 403.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.456e-05/0.2588, allocations: 20 kB / 403.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.669e-05/0.2589, allocations: 35.91 kB / 403.2 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.745e-05/0.259, allocations: 67.66 kB / 403.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002323/0.2592, allocations: 166.4 kB / 403.4 MB, free: 5.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2592, allocations: 3.938 kB / 403.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2592, allocations: 0 / 403.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.2592, allocations: 0 / 403.4 MB, free: 5.586 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.0006524/0.2599, allocations: 454.8 kB / 403.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.2599, allocations: 8.031 kB / 403.9 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.705e-05/0.26, allocations: 50.73 kB / 403.9 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.81e-05/0.26, allocations: 16.84 kB / 404 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.2603, allocations: 200.2 kB / 404.2 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.2603, allocations: 12.31 kB / 404.2 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.921e-05/0.2604, allocations: 24.33 kB / 404.2 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.2607, allocations: 146.8 kB / 404.3 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.2607, allocations: 0 / 404.3 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.2607, allocations: 12 kB / 404.3 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.2607, allocations: 4 kB / 404.4 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001948/0.2609, allocations: 91.69 kB / 404.4 MB, free: 4.488 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007329/0.2617, allocations: 0.525 MB / 405 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001522/0.2618, allocations: 78.73 kB / 405 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.631e-05/0.2619, allocations: 36.78 kB / 405.1 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.2619, allocations: 0 / 405.1 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/0.262, allocations: 30.56 kB / 405.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 9.72e-07/0.262, allocations: 0 / 405.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009611/0.2629, allocations: 0.5994 MB / 405.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.263, allocations: 59.44 kB / 405.8 MB, free: 2.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.2631, allocations: 141.2 kB / 405.9 MB, free: 2.836 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.2631, allocations: 25.7 kB / 405.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.74e-05/0.2632, allocations: 136.2 kB / 406.1 MB, free: 2.668 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.346e-05/0.2633, allocations: 39.64 kB / 406.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.205e-05/0.2633, allocations: 41.7 kB / 406.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.2634, allocations: 318.8 kB / 406.5 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.364e-05/0.2635, allocations: 31.98 kB / 406.5 MB, free: 2.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.2636, allocations: 90.78 kB / 406.6 MB, free: 2.117 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001919/0.2638, allocations: 134.7 kB / 406.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.2639, allocations: 0 / 406.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002684/0.2641, allocations: 157.4 kB / 406.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.2642, allocations: 8 kB / 406.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.2642, allocations: 0 / 406.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.2642, allocations: 4 kB / 406.9 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.2644, allocations: 43.86 kB / 406.9 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.2644, allocations: 4 kB / 406.9 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.912e-05/0.2644, allocations: 4 kB / 406.9 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.2645, allocations: 12.19 kB / 406.9 MB, free: 1.727 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.0001048/0.2646, allocations: 133.7 kB / 407.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.025e-05/0.2646, allocations: 7.953 kB / 407.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.799e-05/0.2647, allocations: 16.38 kB / 407.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.2647, allocations: 3.938 kB / 407.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2647, allocations: 3.938 kB / 407.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.2647, allocations: 0 / 407.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005207/0.2652, allocations: 448 kB / 407.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2652, allocations: 0 / 407.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000131/0.2654, allocations: 27.98 kB / 407.6 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.2654, allocations: 4 kB / 407.6 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.2654, allocations: 0 / 407.6 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.2654, allocations: 4 kB / 407.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2654, allocations: 3.938 kB / 407.6 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003167/0.2657, allocations: 249.2 kB / 407.8 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.289e-05/0.2658, allocations: 85.06 kB / 407.9 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.2658, allocations: 4.031 kB / 407.9 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.051e-05/0.2659, allocations: 4 kB / 407.9 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.684e-05/0.2659, allocations: 11.98 kB / 407.9 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.266, allocations: 8 kB / 407.9 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.52e-05/0.266, allocations: 95.27 kB / 408 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.266, allocations: 0 / 408 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002566/0.2663, allocations: 28 kB / 408 MB, free: 0.5 MB / 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.0006147/0.2669, allocations: 0.7881 MB / 408.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000214/0.2671, allocations: 91.83 kB / 408.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2671, allocations: 3.938 kB / 408.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.246e-05/0.2672, allocations: 39.92 kB / 409 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.2675, allocations: 12.56 kB / 409 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.2694, allocations: 1.861 MB / 410.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.2697, allocations: 0.7119 MB / 411.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.263e-05/0.2697, allocations: 16.88 kB / 411.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.106e-05/0.2698, allocations: 35.42 kB / 411.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2698, allocations: 0 / 411.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01941/0.2892, allocations: 2.398 MB / 414 MB, free: 10.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.62/7.91, allocations: 10.61 kB / 414 MB, free: 10.43 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