Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.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.001501/0.001501, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001654/0.001654, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.374/1.374, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.CompareBrakingForce,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 47.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.2259, allocations: 53.38 MB / 431.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003273/0.2292, allocations: 2.215 MB / 433.3 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.2304, allocations: 0.7245 MB / 434 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.2305, allocations: 7.938 kB / 434 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001339/0.2307, allocations: 43.59 kB / 434.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002439/0.2309, allocations: 95.25 kB / 434.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003013/0.2312, allocations: 111.7 kB / 434.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003272/0.2316, allocations: 302.6 kB / 434.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.2317, allocations: 48.91 kB / 434.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.2318, allocations: 123.5 kB / 434.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.232, allocations: 131.4 kB / 434.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.261e-05/0.232, allocations: 20 kB / 434.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.781e-05/0.2321, allocations: 20 kB / 434.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.014e-05/0.2321, allocations: 51.83 kB / 435 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.2322, allocations: 99.53 kB / 435 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002976/0.2325, allocations: 288.4 kB / 435.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2325, allocations: 0 / 435.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2325, allocations: 3.938 kB / 435.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.2325, allocations: 4 kB / 435.3 MB, free: 2.336 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.000894/0.2334, allocations: 489.5 kB / 435.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.2335, allocations: 12.03 kB / 435.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.476e-05/0.2335, allocations: 50.73 kB / 435.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.546e-05/0.2336, allocations: 32.75 kB / 435.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003111/0.2339, allocations: 203.7 kB / 436.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.2339, allocations: 16.81 kB / 436.1 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.638e-05/0.234, allocations: 28.36 kB / 436.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004341/0.2344, allocations: 234.8 kB / 436.4 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.2344, allocations: 7.953 kB / 436.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.223e-05/0.2344, allocations: 8 kB / 436.4 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.2345, allocations: 4 kB / 436.4 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003737/0.2348, allocations: 163.8 kB / 436.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.2361, allocations: 0.9336 MB / 437.5 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000558/0.2367, allocations: 278.1 kB / 437.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001803/0.2368, allocations: 91.39 kB / 437.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.2369, allocations: 7.984 kB / 437.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.2369, allocations: 38.55 kB / 437.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.503e-06/0.2369, allocations: 0 / 437.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001826/0.2387, allocations: 1.045 MB / 438.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.138e-05/0.2388, allocations: 136.5 kB / 439.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002029/0.239, allocations: 214.6 kB / 439.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.239, allocations: 29.7 kB / 439.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.2391, allocations: 152.8 kB / 439.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.687e-05/0.2392, allocations: 126.9 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.2393, allocations: 74.14 kB / 439.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.2395, allocations: 338.8 kB / 440 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.2397, allocations: 80.83 kB / 440.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.2399, allocations: 202 kB / 440.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004663/0.2404, allocations: 297.6 kB / 440.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2404, allocations: 0 / 440.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006158/0.241, allocations: 345.1 kB / 440.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.2411, allocations: 11.98 kB / 440.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.2411, allocations: 8.25 kB / 440.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.2411, allocations: 4 kB / 440.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003615/0.2414, allocations: 95.89 kB / 441 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.2415, allocations: 7.938 kB / 441 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000163/0.2416, allocations: 19.88 kB / 441 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-05/0.2416, allocations: 16 kB / 441.1 MB, free: 12.11 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (48): * Single equations (assignments): 48 * 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.0001383/0.2418, allocations: 145.8 kB / 441.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.815e-05/0.2419, allocations: 23.86 kB / 441.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.398e-05/0.2419, allocations: 29.41 kB / 441.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.242, allocations: 8.188 kB / 441.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.242, allocations: 0 / 441.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.242, allocations: 11.91 kB / 441.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001389/0.2434, allocations: 0.9157 MB / 442.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.2434, allocations: 4 kB / 442.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003776/0.2437, allocations: 88.14 kB / 442.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.2437, allocations: 4 kB / 442.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.295e-05/0.2438, allocations: 8 kB / 442.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.2438, allocations: 4 kB / 442.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.2438, allocations: 4 kB / 442.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007922/0.2446, allocations: 0.6962 MB / 443 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.102e-05/0.2446, allocations: 27.84 kB / 443 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.937e-05/0.2446, allocations: 8 kB / 443 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002723/0.2449, allocations: 15.98 kB / 443 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.855e-05/0.245, allocations: 31.84 kB / 443.1 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/0.245, allocations: 15.98 kB / 443.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001226/0.2451, allocations: 148.6 kB / 443.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2451, allocations: 3.938 kB / 443.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004466/0.2456, allocations: 60 kB / 443.3 MB, free: 9.73 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.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 (32): * Single equations (assignments): 32 * 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.001091/0.2467, allocations: 1.254 MB / 444.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004607/0.2471, allocations: 227.6 kB / 444.8 MB, free: 8.199 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2471, allocations: 0 / 444.8 MB, free: 8.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002204/0.2473, allocations: 117.1 kB / 444.9 MB, free: 8.086 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007393/0.2481, allocations: 78.64 kB / 445 MB, free: 8.016 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004426/0.2525, allocations: 3.499 MB / 448.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000172/0.2527, allocations: 155.1 kB / 448.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001321/0.2528, allocations: 30.97 kB / 448.6 MB, free: 4.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.253, allocations: 83.41 kB / 448.7 MB, free: 4.008 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.253, allocations: 0 / 448.7 MB, free: 4.008 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03494/0.2879, allocations: 6.609 MB / 455.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/10.89, allocations: 8.062 kB / 455.3 MB, free: 13.55 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_CompareBrakingForce_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_CompareBrakingForce.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/CompareBrakingForce/CompareBrakingForce.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.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: 14.498047240020242]