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.001281/0.001281, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001295/0.001295, allocations: 190.1 kB / 24.49 MB, free: 3.98 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.352/1.352, allocations: 225.7 MB / 253.3 MB, free: 12.88 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.001411/0.001411, allocations: 47.92 kB / 371.2 MB, free: 9.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2309, allocations: 52.18 MB / 423.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003474/0.2344, allocations: 1.916 MB / 425.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008973/0.2353, allocations: 482.8 kB / 425.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.2354, allocations: 4 kB / 425.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001432/0.2356, allocations: 23.78 kB / 425.8 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.022e-05/0.2356, allocations: 39.64 kB / 425.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002272/0.2359, allocations: 39.89 kB / 425.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002303/0.2361, allocations: 151.4 kB / 426 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000171/0.2363, allocations: 45.72 kB / 426 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001208/0.2364, allocations: 71.7 kB / 426.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.2365, allocations: 67.77 kB / 426.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.868e-05/0.2366, allocations: 15.94 kB / 426.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.97e-05/0.2366, allocations: 16 kB / 426.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.466e-05/0.2366, allocations: 35.91 kB / 426.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.496e-05/0.2367, allocations: 55.73 kB / 426.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002219/0.2369, allocations: 164.2 kB / 426.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2369, allocations: 4 kB / 426.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2369, allocations: 0 / 426.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.237, allocations: 4 kB / 426.5 MB, free: 11.32 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.0005786/0.2375, allocations: 369.7 kB / 426.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.2376, allocations: 12.03 kB / 426.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.544e-05/0.2376, allocations: 4.188 kB / 426.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.979e-05/0.2377, allocations: 54.67 kB / 426.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.106e-05/0.2377, allocations: 16.84 kB / 426.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/0.238, allocations: 138.4 kB / 427 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.987e-05/0.238, allocations: 12.38 kB / 427 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.329e-05/0.238, allocations: 20.33 kB / 427.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002962/0.2383, allocations: 145.3 kB / 427.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.2383, allocations: 4 kB / 427.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.2384, allocations: 4 kB / 427.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.2384, allocations: 4 kB / 427.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002082/0.2386, allocations: 96.5 kB / 427.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007964/0.2394, allocations: 455 kB / 427.8 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/0.2395, allocations: 78.47 kB / 427.8 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.947e-05/0.2396, allocations: 36.84 kB / 427.9 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2e-05/0.2396, allocations: 0 / 427.9 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.101e-05/0.2397, allocations: 30.56 kB / 427.9 MB, free: 9.738 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.092e-06/0.2397, allocations: 0 / 427.9 MB, free: 9.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.001087/0.2408, allocations: 458.8 kB / 428.3 MB, free: 9.234 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.2408, allocations: 51.41 kB / 428.4 MB, free: 9.172 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.2409, allocations: 133.3 kB / 428.5 MB, free: 9.035 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.241, allocations: 33.7 kB / 428.6 MB, free: 8.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.488e-05/0.2411, allocations: 136.1 kB / 428.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.888e-05/0.2411, allocations: 43.64 kB / 428.7 MB, free: 8.816 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.298e-05/0.2412, allocations: 37.64 kB / 428.8 MB, free: 8.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.2413, allocations: 318.8 kB / 429.1 MB, free: 8.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.985e-05/0.2414, allocations: 35.97 kB / 429.1 MB, free: 8.418 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.2415, allocations: 82.81 kB / 429.2 MB, free: 8.312 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001937/0.2417, allocations: 131.8 kB / 429.3 MB, free: 8.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.2417, allocations: 0 / 429.3 MB, free: 8.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002665/0.242, allocations: 157.4 kB / 429.5 MB, free: 8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.242, allocations: 4.094 kB / 429.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.242, allocations: 11.94 kB / 429.5 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.242, allocations: 8.125 kB / 429.5 MB, free: 7.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.2422, allocations: 43.91 kB / 429.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.2422, allocations: 0 / 429.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.925e-05/0.2422, allocations: 8 kB / 429.6 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.2422, allocations: 8 kB / 429.6 MB, free: 7.918 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.0001079/0.2424, allocations: 129.7 kB / 429.7 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.2424, allocations: 7.953 kB / 429.7 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.687e-05/0.2424, allocations: 16.36 kB / 429.7 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.2424, allocations: 3.938 kB / 429.7 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.2424, allocations: 8 kB / 429.7 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.2424, allocations: 0 / 429.7 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005281/0.243, allocations: 403.1 kB / 430.1 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.243, allocations: 0 / 430.1 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001305/0.2431, allocations: 23.98 kB / 430.1 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.2431, allocations: 0 / 430.1 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.2431, allocations: 8 kB / 430.2 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.2431, allocations: 3.938 kB / 430.2 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2431, allocations: 0 / 430.2 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003378/0.2434, allocations: 257.1 kB / 430.4 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.514e-05/0.2435, allocations: 7.953 kB / 430.4 MB, free: 6.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.991e-05/0.2435, allocations: 4 kB / 430.4 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.114e-05/0.2436, allocations: 4 kB / 430.4 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.042e-05/0.2436, allocations: 11.92 kB / 430.4 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.2436, allocations: 0 / 430.4 MB, free: 6.961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.584e-05/0.2437, allocations: 99.27 kB / 430.5 MB, free: 6.863 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2437, allocations: 0 / 430.5 MB, free: 6.863 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002586/0.2439, allocations: 28 kB / 430.6 MB, free: 6.836 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.0005969/0.2445, allocations: 0.7882 MB / 431.3 MB, free: 6.016 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002143/0.2447, allocations: 91.86 kB / 431.4 MB, free: 5.926 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2447, allocations: 0 / 431.4 MB, free: 5.926 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.794e-05/0.2448, allocations: 39.92 kB / 431.5 MB, free: 5.887 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.2451, allocations: 8.562 kB / 431.5 MB, free: 5.879 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.2472, allocations: 1.866 MB / 433.4 MB, free: 3.879 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.887e-05/0.2473, allocations: 101.6 kB / 433.5 MB, free: 3.754 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.78e-05/0.2473, allocations: 8.969 kB / 433.5 MB, free: 3.742 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.223e-05/0.2474, allocations: 43.42 kB / 433.5 MB, free: 3.699 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2474, allocations: 4 kB / 433.5 MB, free: 3.695 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02391/0.2713, allocations: 2.614 MB / 436.1 MB, free: 1.238 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/10.63, allocations: 6.297 kB / 436.1 MB, free: 1.234 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.91285476705525]