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.0008385/0.0008385, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008823/0.0008823, allocations: 174.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8453/0.8453, allocations: 177.1 MB / 204.3 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.513e-06/1.513e-06, allocations: 0 / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.788e-05/1.94e-05, allocations: 2.281 kB / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.002268/0.002288, allocations: 2.238 MB / 326.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008949/0.003183, allocations: 0.732 MB / 327.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.507e-05/0.003278, allocations: 7.938 kB / 327.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001071/0.003385, allocations: 35.66 kB / 327.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002059/0.003591, allocations: 95.19 kB / 327.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002484/0.003839, allocations: 111.7 kB / 327.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002395/0.004079, allocations: 326.4 kB / 328.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.004194, allocations: 40.38 kB / 328.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.004328, allocations: 171.6 kB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/0.004434, allocations: 103.7 kB / 328.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.00446, allocations: 20 kB / 328.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.222e-05/0.004482, allocations: 20 kB / 328.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.153e-05/0.004513, allocations: 51.77 kB / 328.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.835e-05/0.004572, allocations: 91.75 kB / 328.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002071/0.004779, allocations: 275 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.004781, allocations: 4 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.004782, allocations: 0 / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.004786, allocations: 0 / 328.8 MB, free: 11.66 MB / 298.7 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.0005599/0.005346, allocations: 493.5 kB / 329.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.005381, allocations: 8.031 kB / 329.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.05e-05/0.005422, allocations: 54.73 kB / 329.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.639e-05/0.005458, allocations: 28.75 kB / 329.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002335/0.005692, allocations: 195 kB / 329.6 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.005709, allocations: 24.81 kB / 329.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.822e-05/0.005737, allocations: 20.38 kB / 329.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002702/0.006007, allocations: 236 kB / 329.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.006023, allocations: 8.141 kB / 329.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.006044, allocations: 12.12 kB / 329.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.00605, allocations: 8 kB / 329.9 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002121/0.006262, allocations: 163.7 kB / 330.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007683/0.007031, allocations: 0.9301 MB / 331 MB, free: 9.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003163/0.007347, allocations: 290.2 kB / 331.3 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.00745, allocations: 91.34 kB / 331.4 MB, free: 8.918 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.007467, allocations: 4 kB / 331.4 MB, free: 8.914 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.007488, allocations: 38.55 kB / 331.4 MB, free: 8.867 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.113e-06/0.007489, allocations: 0 / 331.4 MB, free: 8.867 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.00107/0.008559, allocations: 1.043 MB / 332.5 MB, free: 7.707 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/0.008607, allocations: 136.5 kB / 332.6 MB, free: 7.543 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.00874, allocations: 210.7 kB / 332.8 MB, free: 7.328 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.008755, allocations: 33.7 kB / 332.8 MB, free: 7.289 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.782e-05/0.008823, allocations: 148.8 kB / 333 MB, free: 7.137 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.027e-05/0.008883, allocations: 123 kB / 333.1 MB, free: 7.016 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.246e-05/0.008945, allocations: 74.12 kB / 333.2 MB, free: 6.938 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.488e-05/0.00903, allocations: 342.8 kB / 333.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/0.009142, allocations: 80.95 kB / 333.6 MB, free: 6.516 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.009303, allocations: 198.6 kB / 333.8 MB, free: 6.273 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002854/0.009589, allocations: 306.5 kB / 334.1 MB, free: 5.926 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.009591, allocations: 0 / 334.1 MB, free: 5.926 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003478/0.009938, allocations: 341.1 kB / 334.4 MB, free: 5.586 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.009952, allocations: 8 kB / 334.4 MB, free: 5.578 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.009957, allocations: 256 / 334.4 MB, free: 5.578 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.009971, allocations: 12 kB / 334.4 MB, free: 5.566 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/0.01016, allocations: 95.83 kB / 334.5 MB, free: 5.473 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.01017, allocations: 4 kB / 334.5 MB, free: 5.469 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.956e-05/0.01025, allocations: 15.98 kB / 334.5 MB, free: 5.453 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.01026, allocations: 16 kB / 334.5 MB, free: 5.438 MB / 298.7 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 8.899e-05/0.01035, allocations: 153.7 kB / 334.7 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.962e-05/0.0104, allocations: 27.86 kB / 334.7 MB, free: 5.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.945e-05/0.01044, allocations: 29.45 kB / 334.8 MB, free: 5.223 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.01045, allocations: 4 kB / 334.8 MB, free: 5.219 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.01045, allocations: 8 kB / 334.8 MB, free: 5.211 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.01046, allocations: 0 / 334.8 MB, free: 5.211 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007982/0.01125, allocations: 0.9117 MB / 335.7 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.01126, allocations: 4 kB / 335.7 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001894/0.01145, allocations: 75.91 kB / 335.8 MB, free: 4.145 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.01145, allocations: 12.38 kB / 335.8 MB, free: 4.133 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.01147, allocations: 15.98 kB / 335.8 MB, free: 4.117 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.01147, allocations: 7.938 kB / 335.8 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.01147, allocations: 0 / 335.8 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004866/0.01196, allocations: 0.6924 MB / 336.5 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.6e-05/0.01199, allocations: 27.8 kB / 336.5 MB, free: 3.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.344e-05/0.01201, allocations: 12.23 kB / 336.5 MB, free: 3.328 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.01215, allocations: 12 kB / 336.5 MB, free: 3.316 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.581e-05/0.01219, allocations: 43.83 kB / 336.6 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.0122, allocations: 8 kB / 336.6 MB, free: 3.266 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.897e-05/0.01228, allocations: 152.5 kB / 336.7 MB, free: 3.117 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01228, allocations: 0 / 336.7 MB, free: 3.117 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003039/0.01259, allocations: 68 kB / 336.8 MB, free: 3.051 MB / 298.7 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.0006235/0.01321, allocations: 1.234 MB / 338 MB, free: 1.766 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000296/0.01351, allocations: 237.1 kB / 338.3 MB, free: 1.535 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01351, allocations: 0 / 338.3 MB, free: 1.535 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001326/0.01364, allocations: 116.8 kB / 338.4 MB, free: 1.422 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004496/0.01409, allocations: 74.83 kB / 338.5 MB, free: 1.352 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.0166, allocations: 3.339 MB / 341.8 MB, free: 13.77 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001044/0.0167, allocations: 151.1 kB / 341.9 MB, free: 13.6 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.309e-05/0.01679, allocations: 34.97 kB / 342 MB, free: 13.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.343e-05/0.01688, allocations: 80.47 kB / 342.1 MB, free: 13.49 MB / 314.7 MB Notification: Performance of SimCode: time 3.81e-07/0.01688, allocations: 0 / 342.1 MB, free: 13.49 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01709/0.03397, allocations: 6.64 MB / 348.7 MB, free: 7.02 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.567/6.601, allocations: 11.33 kB / 348.7 MB, free: 7.012 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/CompareBrakingForce/CompareBrakingForce.csv","/var/lib/jenkins/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: 8.838801636360586]