Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.004655/0.004655, allocations: 114 kB / 21.97 MB, free: 5.227 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.001312/0.001312, allocations: 210.6 kB / 25.28 MB, free: 3.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.292/1.292, allocations: 207.6 MB / 236.1 MB, free: 9.969 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 59.92 kB / 348 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2703, allocations: 49.16 MB / 397.1 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002929/0.2732, allocations: 1.99 MB / 399.1 MB, free: 7.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007532/0.2739, allocations: 0.5555 MB / 399.7 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.741e-05/0.274, allocations: 2.562 kB / 399.7 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.2741, allocations: 29.39 kB / 399.7 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.397e-05/0.2742, allocations: 32.41 kB / 399.7 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001892/0.2744, allocations: 41.39 kB / 399.8 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001802/0.2746, allocations: 153.5 kB / 399.9 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.2747, allocations: 57.89 kB / 400 MB, free: 7.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.2748, allocations: 65.52 kB / 400 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.2749, allocations: 69.39 kB / 400.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.673e-05/0.275, allocations: 14.78 kB / 400.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.451e-05/0.275, allocations: 13.47 kB / 400.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.023e-05/0.275, allocations: 34.59 kB / 400.2 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.296e-05/0.2751, allocations: 74.41 kB / 400.2 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000229/0.2753, allocations: 160.7 kB / 400.4 MB, free: 6.855 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2753, allocations: 4 kB / 400.4 MB, free: 6.852 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2753, allocations: 0 / 400.4 MB, free: 6.852 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.2753, allocations: 0 / 400.4 MB, free: 6.852 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.0005174/0.2758, allocations: 362.4 kB / 400.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.2759, allocations: 14.36 kB / 400.8 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.697e-05/0.2759, allocations: 7.781 kB / 400.8 MB, free: 6.527 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.205e-05/0.2759, allocations: 55.62 kB / 400.8 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.703e-05/0.276, allocations: 16.34 kB / 400.9 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.2762, allocations: 147.8 kB / 401 MB, free: 6.312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.2762, allocations: 10.88 kB / 401 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.647e-05/0.2762, allocations: 19.83 kB / 401 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002601/0.2765, allocations: 142.5 kB / 401.2 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.2765, allocations: 5.047 kB / 401.2 MB, free: 6.223 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.2765, allocations: 6.469 kB / 401.2 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.2765, allocations: 4.547 kB / 401.2 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.2767, allocations: 98.94 kB / 401.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000651/0.2773, allocations: 478 kB / 401.7 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.2775, allocations: 75.17 kB / 401.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.538e-05/0.2776, allocations: 29.23 kB / 401.9 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.2776, allocations: 5.5 kB / 401.9 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.721e-05/0.2776, allocations: 31.31 kB / 401.9 MB, free: 5.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.2776, allocations: 0 / 401.9 MB, free: 5.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007953/0.2784, allocations: 467 kB / 402.3 MB, free: 5.375 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.547e-05/0.2784, allocations: 53.14 kB / 402.4 MB, free: 5.312 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.768e-05/0.2785, allocations: 129 kB / 402.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.046e-05/0.2785, allocations: 31.2 kB / 402.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.898e-05/0.2786, allocations: 138.7 kB / 402.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.937e-05/0.2786, allocations: 44.84 kB / 402.7 MB, free: 5.008 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.73e-05/0.2786, allocations: 39.41 kB / 402.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.251e-05/0.2787, allocations: 320.4 kB / 403.1 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.298e-05/0.2788, allocations: 33.77 kB / 403.1 MB, free: 4.648 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.119e-05/0.2789, allocations: 82.78 kB / 403.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001619/0.279, allocations: 131.6 kB / 403.3 MB, free: 4.469 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.279, allocations: 1.125 kB / 403.3 MB, free: 4.469 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002439/0.2793, allocations: 163.2 kB / 403.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.2793, allocations: 6.234 kB / 403.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.2793, allocations: 2.453 kB / 403.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.73e-05/0.2793, allocations: 10.11 kB / 403.5 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/0.2795, allocations: 38.08 kB / 403.5 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.2795, allocations: 2.797 kB / 403.5 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.856e-05/0.2795, allocations: 10.05 kB / 403.6 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.2796, allocations: 4.562 kB / 403.6 MB, free: 4.367 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 6.428e-05/0.2796, allocations: 130.8 kB / 403.7 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.983e-05/0.2796, allocations: 8.234 kB / 403.7 MB, free: 4.234 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.216e-05/0.2797, allocations: 15.86 kB / 403.7 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.2797, allocations: 5.766 kB / 403.7 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2797, allocations: 0 / 403.7 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.2797, allocations: 0.6094 kB / 403.7 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004287/0.2801, allocations: 419 kB / 404.1 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2801, allocations: 0 / 404.1 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001261/0.2802, allocations: 28.61 kB / 404.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.2803, allocations: 1.25 kB / 404.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.2803, allocations: 1.938 kB / 404.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.2803, allocations: 1.062 kB / 404.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.2803, allocations: 2.031 kB / 404.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000266/0.2805, allocations: 259.2 kB / 404.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.303e-05/0.2805, allocations: 8.109 kB / 404.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.2806, allocations: 1.75 kB / 404.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.043e-05/0.2806, allocations: 7.906 kB / 404.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.573e-05/0.2807, allocations: 10.62 kB / 404.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.143e-06/0.2807, allocations: 8.125 kB / 404.4 MB, free: 3.648 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.093e-05/0.2807, allocations: 98.78 kB / 404.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2807, allocations: 4.062 kB / 404.5 MB, free: 3.562 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002552/0.281, allocations: 23.12 kB / 404.6 MB, free: 3.562 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.000434/0.2814, allocations: 0.7849 MB / 405.4 MB, free: 2.836 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002068/0.2816, allocations: 88.48 kB / 405.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.2816, allocations: 0 / 405.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.57e-05/0.2817, allocations: 40.3 kB / 405.5 MB, free: 2.797 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.282, allocations: 11.2 kB / 405.5 MB, free: 2.793 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001663/0.2836, allocations: 1.872 MB / 407.4 MB, free: 1.164 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001505/0.2838, allocations: 0.7132 MB / 408.1 MB, free: 480 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.869e-05/0.2838, allocations: 13.78 kB / 408.1 MB, free: 472 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.125e-05/0.2839, allocations: 36.72 kB / 408.1 MB, free: 444 kB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2839, allocations: 0 / 408.1 MB, free: 444 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02528/0.3092, allocations: 2.609 MB / 410.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/10.62, allocations: 7.188 kB / 410.7 MB, free: 15.72 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.831422412011307]