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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001895/0.001895, allocations: 191.7 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 225.6 MB / 253.3 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 43.92 kB / 371.2 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2536, allocations: 52.18 MB / 423.4 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003283/0.2569, allocations: 2.021 MB / 425.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008412/0.2577, allocations: 0.5065 MB / 425.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.301e-05/0.2578, allocations: 4 kB / 425.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001226/0.2579, allocations: 19.78 kB / 425.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.285e-05/0.258, allocations: 35.64 kB / 426 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001938/0.2582, allocations: 43.94 kB / 426 MB, free: 12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001953/0.2584, allocations: 147.4 kB / 426.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.2586, allocations: 53.72 kB / 426.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.2587, allocations: 67.72 kB / 426.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.2588, allocations: 67.7 kB / 426.4 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.2588, allocations: 16 kB / 426.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.399e-05/0.2588, allocations: 12 kB / 426.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.939e-05/0.2589, allocations: 35.89 kB / 426.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.128e-05/0.259, allocations: 75.61 kB / 426.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002124/0.2592, allocations: 160.2 kB / 426.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.2592, allocations: 4 kB / 426.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2592, allocations: 0 / 426.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.2592, allocations: 0 / 426.6 MB, free: 11.38 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.0005924/0.2598, allocations: 373.7 kB / 427 MB, free: 10.99 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.2598, allocations: 12.03 kB / 427 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.716e-05/0.2598, allocations: 4.188 kB / 427 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.563e-05/0.2599, allocations: 46.73 kB / 427.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.729e-05/0.2599, allocations: 16.84 kB / 427.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000241/0.2602, allocations: 142.4 kB / 427.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.796e-05/0.2602, allocations: 16.3 kB / 427.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.633e-05/0.2602, allocations: 24.33 kB / 427.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002874/0.2605, allocations: 145.3 kB / 427.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.2605, allocations: 4 kB / 427.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.2605, allocations: 4 kB / 427.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.2605, allocations: 4 kB / 427.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002083/0.2608, allocations: 92.56 kB / 427.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007978/0.2616, allocations: 478.9 kB / 428 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001779/0.2617, allocations: 78.53 kB / 428.1 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7e-05/0.2618, allocations: 32.91 kB / 428.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.2618, allocations: 0 / 428.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/0.2618, allocations: 42.5 kB / 428.1 MB, free: 9.766 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 8.01e-07/0.2618, allocations: 4 kB / 428.1 MB, free: 9.762 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009334/0.2628, allocations: 446.7 kB / 428.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.2628, allocations: 51.41 kB / 428.6 MB, free: 9.207 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.2629, allocations: 133.8 kB / 428.8 MB, free: 9.066 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.263, allocations: 33.64 kB / 428.8 MB, free: 9.027 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.165e-05/0.2631, allocations: 136.1 kB / 428.9 MB, free: 8.891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.14e-05/0.2631, allocations: 51.62 kB / 429 MB, free: 8.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.222e-05/0.2632, allocations: 25.72 kB / 429 MB, free: 8.809 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.2633, allocations: 322.8 kB / 429.3 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.119e-05/0.2634, allocations: 31.98 kB / 429.3 MB, free: 8.453 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.2635, allocations: 90.8 kB / 429.4 MB, free: 8.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002075/0.2637, allocations: 131.8 kB / 429.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.2637, allocations: 4 kB / 429.6 MB, free: 8.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002777/0.264, allocations: 157.3 kB / 429.7 MB, free: 8.023 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.264, allocations: 7.938 kB / 429.7 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.264, allocations: 4 kB / 429.7 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.264, allocations: 12.12 kB / 429.7 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001613/0.2642, allocations: 39.92 kB / 429.8 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.2642, allocations: 0 / 429.8 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.785e-05/0.2643, allocations: 4 kB / 429.8 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.2643, allocations: 11.98 kB / 429.8 MB, free: 7.945 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.0001184/0.2644, allocations: 133.7 kB / 429.9 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.06e-05/0.2644, allocations: 7.953 kB / 429.9 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.554e-05/0.2645, allocations: 12.38 kB / 429.9 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.2645, allocations: 3.938 kB / 429.9 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.463e-06/0.2645, allocations: 8 kB / 430 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2645, allocations: 0 / 430 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005781/0.2651, allocations: 411.1 kB / 430.4 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.2651, allocations: 0 / 430.4 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001331/0.2652, allocations: 27.98 kB / 430.4 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.2652, allocations: 0 / 430.4 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.2652, allocations: 8.062 kB / 430.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.2652, allocations: 0 / 430.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2652, allocations: 0 / 430.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003546/0.2656, allocations: 253 kB / 430.6 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.483e-05/0.2656, allocations: 7.984 kB / 430.6 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.2656, allocations: 12.06 kB / 430.7 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.742e-05/0.2657, allocations: 0 / 430.7 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.191e-05/0.2657, allocations: 7.984 kB / 430.7 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.2657, allocations: 8 kB / 430.7 MB, free: 6.977 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.09e-05/0.2658, allocations: 98.78 kB / 430.8 MB, free: 6.883 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2658, allocations: 0 / 430.8 MB, free: 6.883 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002553/0.2661, allocations: 24 kB / 430.8 MB, free: 6.859 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.0006305/0.2667, allocations: 0.7922 MB / 431.6 MB, free: 6.035 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002219/0.2669, allocations: 88.2 kB / 431.7 MB, free: 5.949 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2669, allocations: 4.062 kB / 431.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.888e-05/0.267, allocations: 35.92 kB / 431.7 MB, free: 5.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/0.2673, allocations: 27.2 kB / 431.7 MB, free: 5.887 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002165/0.2694, allocations: 1.854 MB / 433.6 MB, free: 3.898 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.2698, allocations: 0.7158 MB / 434.3 MB, free: 3.156 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.872e-05/0.2698, allocations: 8.969 kB / 434.3 MB, free: 3.145 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.657e-05/0.2699, allocations: 39.42 kB / 434.4 MB, free: 3.105 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2699, allocations: 8 kB / 434.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02445/0.2944, allocations: 2.609 MB / 437 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/10.63, allocations: 8.062 kB / 437 MB, free: 0.6211 MB / 334.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.888722857052926]