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.001297/0.001297, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.00146/0.00146, allocations: 189.9 kB / 23.72 MB, free: 4.684 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.393/1.393, allocations: 225.6 MB / 252.5 MB, free: 13.04 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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 47.92 kB / 370.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2561, allocations: 52.18 MB / 422.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003933/0.26, allocations: 2.008 MB / 424.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009073/0.2609, allocations: 0.5141 MB / 425.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.261, allocations: 4 kB / 425.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.2612, allocations: 27.78 kB / 425.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.129e-05/0.2613, allocations: 35.64 kB / 425.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.2615, allocations: 35.95 kB / 425.2 MB, free: 12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002148/0.2617, allocations: 151.4 kB / 425.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.2619, allocations: 49.72 kB / 425.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.262, allocations: 71.7 kB / 425.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.2621, allocations: 67.7 kB / 425.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.575e-05/0.2622, allocations: 12 kB / 425.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.75e-05/0.2622, allocations: 20 kB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.702e-05/0.2622, allocations: 31.91 kB / 425.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.171e-05/0.2623, allocations: 67.67 kB / 425.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.2626, allocations: 171.7 kB / 425.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2626, allocations: 0 / 425.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.2626, allocations: 0 / 425.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.2626, allocations: 0 / 425.9 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.0006304/0.2632, allocations: 373.7 kB / 426.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.2632, allocations: 12.03 kB / 426.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.515e-05/0.2633, allocations: 46.73 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.138e-05/0.2633, allocations: 16.84 kB / 426.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.2636, allocations: 142.4 kB / 426.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.2636, allocations: 12.38 kB / 426.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.598e-05/0.2637, allocations: 20.27 kB / 426.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002877/0.264, allocations: 141.5 kB / 426.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.264, allocations: 0 / 426.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.097e-05/0.264, allocations: 12 kB / 426.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.264, allocations: 8 kB / 426.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000197/0.2642, allocations: 88.56 kB / 426.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008054/0.265, allocations: 482.9 kB / 427.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.2652, allocations: 78.55 kB / 427.3 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.87e-05/0.2652, allocations: 32.97 kB / 427.3 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.2653, allocations: 0 / 427.3 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.2653, allocations: 34.56 kB / 427.3 MB, free: 9.773 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 9.42e-07/0.2653, allocations: 0 / 427.3 MB, free: 9.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009651/0.2662, allocations: 462.6 kB / 427.8 MB, free: 9.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/0.2663, allocations: 55.34 kB / 427.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001273/0.2664, allocations: 133.8 kB / 428 MB, free: 9.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.2664, allocations: 25.7 kB / 428 MB, free: 9.027 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.978e-05/0.2665, allocations: 140.1 kB / 428.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.654e-05/0.2666, allocations: 43.64 kB / 428.2 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.307e-05/0.2666, allocations: 29.72 kB / 428.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.2668, allocations: 322.8 kB / 428.5 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.052e-05/0.2669, allocations: 35.98 kB / 428.6 MB, free: 8.449 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/0.267, allocations: 89.89 kB / 428.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.2672, allocations: 131.8 kB / 428.8 MB, free: 8.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.2672, allocations: 0 / 428.8 MB, free: 8.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002753/0.2675, allocations: 157.4 kB / 428.9 MB, free: 8.027 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.2675, allocations: 8 kB / 428.9 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.2675, allocations: 96 / 428.9 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.2675, allocations: 7.938 kB / 428.9 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000161/0.2677, allocations: 39.86 kB / 429 MB, free: 7.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.577e-06/0.2677, allocations: 4 kB / 429 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.922e-05/0.2678, allocations: 8 kB / 429 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.2678, allocations: 12.17 kB / 429 MB, free: 7.949 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.0001169/0.2679, allocations: 133.7 kB / 429.1 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.104e-05/0.2679, allocations: 7.953 kB / 429.1 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.381e-05/0.268, allocations: 12.38 kB / 429.2 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.268, allocations: 3.938 kB / 429.2 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.268, allocations: 0 / 429.2 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.268, allocations: 4 kB / 429.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005682/0.2685, allocations: 423 kB / 429.6 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2685, allocations: 0 / 429.6 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001317/0.2687, allocations: 27.98 kB / 429.6 MB, free: 7.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.2687, allocations: 4 kB / 429.6 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.2687, allocations: 0 / 429.6 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2687, allocations: 0 / 429.6 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2687, allocations: 4 kB / 429.6 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003459/0.269, allocations: 253.1 kB / 429.9 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.551e-05/0.2691, allocations: 7.953 kB / 429.9 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.08e-05/0.2691, allocations: 4 kB / 429.9 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.262e-05/0.2692, allocations: 4 kB / 429.9 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.2692, allocations: 3.984 kB / 429.9 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.2692, allocations: 8 kB / 429.9 MB, free: 6.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.389e-05/0.2693, allocations: 103.3 kB / 430 MB, free: 6.879 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2693, allocations: 0 / 430 MB, free: 6.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002656/0.2696, allocations: 31.94 kB / 430 MB, free: 6.848 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.0006678/0.2702, allocations: 0.7804 MB / 430.8 MB, free: 6.035 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002372/0.2705, allocations: 87.86 kB / 430.9 MB, free: 5.949 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2705, allocations: 0 / 430.9 MB, free: 5.949 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.818e-05/0.2705, allocations: 39.92 kB / 430.9 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.0003124/0.2708, allocations: 16.48 kB / 430.9 MB, free: 5.895 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002194/0.273, allocations: 1.866 MB / 432.8 MB, free: 3.898 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.2734, allocations: 0.7157 MB / 433.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.434e-05/0.2734, allocations: 12.97 kB / 433.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.587e-05/0.2735, allocations: 43.42 kB / 433.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2735, allocations: 0 / 433.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03177/0.3053, allocations: 2.579 MB / 436.2 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/10.98, allocations: 9.969 kB / 436.2 MB, free: 0.6367 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: 13.281070934142917]