Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 115.6 kB / 20.43 MB, free: 1.465 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001801/0.001801, allocations: 212 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.431/1.431, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 47.92 kB / 377.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2717, allocations: 53.36 MB / 431.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003327/0.275, allocations: 2.026 MB / 433.2 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.276, allocations: 0.5843 MB / 433.7 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.642e-05/0.2761, allocations: 0 / 433.7 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.2762, allocations: 23.78 kB / 433.8 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.815e-05/0.2763, allocations: 39.66 kB / 433.8 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000233/0.2765, allocations: 51.86 kB / 433.8 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002094/0.2768, allocations: 147.4 kB / 434 MB, free: 4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.2769, allocations: 53.72 kB / 434 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001597/0.2771, allocations: 71.72 kB / 434.1 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/0.2772, allocations: 71.69 kB / 434.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.592e-05/0.2772, allocations: 12 kB / 434.2 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.445e-05/0.2773, allocations: 20 kB / 434.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.625e-05/0.2773, allocations: 39.84 kB / 434.3 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.458e-05/0.2774, allocations: 71.67 kB / 434.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002613/0.2776, allocations: 167.7 kB / 434.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2776, allocations: 0 / 434.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2776, allocations: 0 / 434.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.2777, allocations: 0 / 434.5 MB, free: 3.504 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.0006309/0.2783, allocations: 369.7 kB / 434.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.2783, allocations: 8.031 kB / 434.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.358e-05/0.2784, allocations: 54.73 kB / 434.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.2785, allocations: 28.77 kB / 434.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002608/0.2788, allocations: 150.3 kB / 435.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.2788, allocations: 12.38 kB / 435.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.701e-05/0.2788, allocations: 12.38 kB / 435.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002983/0.2791, allocations: 150.4 kB / 435.3 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.02e-05/0.2792, allocations: 7.953 kB / 435.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.2792, allocations: 8 kB / 435.3 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.2792, allocations: 8 kB / 435.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002097/0.2794, allocations: 87.94 kB / 435.4 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007887/0.2802, allocations: 479.2 kB / 435.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.2803, allocations: 70.5 kB / 435.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.783e-05/0.2804, allocations: 36.83 kB / 435.9 MB, free: 1.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.2804, allocations: 4.125 kB / 435.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.2805, allocations: 34.56 kB / 436 MB, free: 1.883 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.192e-06/0.2805, allocations: 0 / 436 MB, free: 1.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009479/0.2814, allocations: 458.7 kB / 436.4 MB, free: 1.379 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.2815, allocations: 55.34 kB / 436.5 MB, free: 1.312 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.2816, allocations: 131.5 kB / 436.6 MB, free: 1.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.2816, allocations: 25.7 kB / 436.6 MB, free: 1.141 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.394e-05/0.2817, allocations: 140.1 kB / 436.8 MB, free: 1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.793e-05/0.2817, allocations: 47.58 kB / 436.8 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.418e-05/0.2818, allocations: 33.7 kB / 436.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.2819, allocations: 322.8 kB / 437.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.629e-05/0.282, allocations: 39.91 kB / 437.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.2821, allocations: 77.27 kB / 437.3 MB, free: 464 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.2823, allocations: 131.8 kB / 437.4 MB, free: 308 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.2823, allocations: 4 kB / 437.4 MB, free: 304 kB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002699/0.2826, allocations: 161.3 kB / 437.6 MB, free: 136 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2826, allocations: 6.656 kB / 437.6 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2826, allocations: 4 kB / 437.6 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.2826, allocations: 4 kB / 437.6 MB, free: 124 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.2828, allocations: 43.86 kB / 437.6 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.2828, allocations: 3.984 kB / 437.6 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.496e-05/0.2829, allocations: 4 kB / 437.6 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.2829, allocations: 16.19 kB / 437.6 MB, free: 56 kB / 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.0001229/0.283, allocations: 129.7 kB / 437.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.035e-05/0.283, allocations: 7.953 kB / 437.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.444e-05/0.2831, allocations: 16.7 kB / 437.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.2831, allocations: 11.94 kB / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2831, allocations: 0 / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2831, allocations: 0 / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005525/0.2836, allocations: 415.1 kB / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2836, allocations: 0 / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001311/0.2838, allocations: 23.98 kB / 438.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.2838, allocations: 4 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.2838, allocations: 3.984 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2838, allocations: 0 / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2838, allocations: 0 / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003371/0.2841, allocations: 257.1 kB / 438.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.643e-05/0.2841, allocations: 11.94 kB / 438.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.158e-05/0.2842, allocations: 7.984 kB / 438.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.131e-05/0.2842, allocations: 0 / 438.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.828e-05/0.2843, allocations: 11.98 kB / 438.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-06/0.2843, allocations: 4 kB / 438.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.339e-05/0.2844, allocations: 103.3 kB / 438.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2844, allocations: 192 / 438.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002643/0.2846, allocations: 24 kB / 438.7 MB, free: 14.96 MB / 350.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.0006285/0.2853, allocations: 0.7938 MB / 439.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002289/0.2855, allocations: 87.83 kB / 439.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2855, allocations: 0 / 439.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.297e-05/0.2856, allocations: 39.92 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002982/0.2859, allocations: 8.562 kB / 439.6 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002132/0.288, allocations: 1.883 MB / 441.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.2883, allocations: 0.7119 MB / 442.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.111e-05/0.2884, allocations: 12.97 kB / 442.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.511e-05/0.2885, allocations: 43.42 kB / 442.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2885, allocations: 0 / 442.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03024/0.3187, allocations: 2.61 MB / 444.8 MB, free: 8.703 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.06, allocations: 6.719 kB / 444.9 MB, free: 8.699 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.55714836900006]