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.001287/0.001287, allocations: 124.4 kB / 17.79 MB, free: 5.277 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.001398/0.001398, allocations: 203.3 kB / 20.74 MB, free: 2.336 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.409/1.409, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001611/0.001611, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09585/0.09746, allocations: 53.33 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003803/0.1013, allocations: 2.374 MB / 428.7 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.1029, allocations: 0.7673 MB / 429.4 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002301/0.1031, allocations: 7.938 kB / 429.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001818/0.1033, allocations: 43.53 kB / 429.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003708/0.1036, allocations: 91.31 kB / 429.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004225/0.1041, allocations: 119.7 kB / 429.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004443/0.1045, allocations: 298.6 kB / 430 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001858/0.1047, allocations: 52.7 kB / 430 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000185/0.1049, allocations: 115.6 kB / 430.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002076/0.1051, allocations: 127.4 kB / 430.3 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.706e-05/0.1051, allocations: 20 kB / 430.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.531e-05/0.1052, allocations: 20 kB / 430.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.797e-05/0.1052, allocations: 59.77 kB / 430.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001463/0.1054, allocations: 127.3 kB / 430.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003588/0.1057, allocations: 274.8 kB / 430.8 MB, free: 312 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1058, allocations: 0 / 430.8 MB, free: 312 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1058, allocations: 3.938 kB / 430.8 MB, free: 308 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.1058, allocations: 0 / 430.8 MB, free: 308 kB / 350.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.1804/0.2862, allocations: 0.5487 MB / 431.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.2863, allocations: 9.812 kB / 431.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.147e-05/0.2863, allocations: 58.39 kB / 431.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.217e-05/0.2864, allocations: 31.91 kB / 431.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004046/0.2868, allocations: 260.5 kB / 431.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.2868, allocations: 15.81 kB / 431.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.489e-05/0.2869, allocations: 23.09 kB / 431.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005293/0.2874, allocations: 242.6 kB / 432 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.2874, allocations: 9.484 kB / 432 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/0.2874, allocations: 13.78 kB / 432 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.2875, allocations: 7.219 kB / 432 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003865/0.2878, allocations: 160.1 kB / 432.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.289, allocations: 1.009 MB / 433.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005229/0.2895, allocations: 281.2 kB / 433.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001641/0.2897, allocations: 96.81 kB / 433.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.2897, allocations: 1.688 kB / 433.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.075e-05/0.2897, allocations: 40.44 kB / 433.6 MB, free: 9.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.234e-06/0.2897, allocations: 0 / 433.6 MB, free: 9.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001679/0.2914, allocations: 1.338 MB / 434.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.2915, allocations: 138.9 kB / 435 MB, free: 8.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.2916, allocations: 203.9 kB / 435.2 MB, free: 8.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.2917, allocations: 33.14 kB / 435.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.309e-05/0.2918, allocations: 158.6 kB / 435.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.644e-05/0.2918, allocations: 127.2 kB / 435.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.715e-05/0.2919, allocations: 63.08 kB / 435.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.325e-05/0.292, allocations: 339.9 kB / 435.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002714/0.2923, allocations: 82.59 kB / 436 MB, free: 8.176 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002768/0.2925, allocations: 200.3 kB / 436.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004288/0.293, allocations: 303.2 kB / 436.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.293, allocations: 1.312 kB / 436.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005871/0.2936, allocations: 345.6 kB / 436.8 MB, free: 7.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.2936, allocations: 6.75 kB / 436.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.2936, allocations: 4.078 kB / 436.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.293e-05/0.2936, allocations: 8.938 kB / 436.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003513/0.294, allocations: 97.52 kB / 437 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.294, allocations: 11.95 kB / 437 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001667/0.2941, allocations: 11.03 kB / 437 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.67e-05/0.2942, allocations: 22.16 kB / 437 MB, free: 7.652 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.0001094/0.2943, allocations: 146.4 kB / 437.1 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.626e-05/0.2944, allocations: 26.64 kB / 437.2 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.017e-05/0.2944, allocations: 33.2 kB / 437.2 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.2944, allocations: 6.234 kB / 437.2 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.2945, allocations: 6.281 kB / 437.2 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.2945, allocations: 1.219 kB / 437.2 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.2957, allocations: 0.9738 MB / 438.2 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.2957, allocations: 3.141 kB / 438.2 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003672/0.2961, allocations: 80.75 kB / 438.3 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.657e-06/0.2961, allocations: 3.906 kB / 438.3 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.2961, allocations: 11.28 kB / 438.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.915e-06/0.2961, allocations: 5.422 kB / 438.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.2961, allocations: 2.812 kB / 438.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007309/0.2968, allocations: 0.7049 MB / 439 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.782e-05/0.2969, allocations: 104.2 kB / 439.1 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.839e-05/0.2969, allocations: 9.984 kB / 439.1 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002586/0.2972, allocations: 11.98 kB / 439.1 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.403e-05/0.2973, allocations: 35.81 kB / 439.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.2973, allocations: 14.39 kB / 439.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001239/0.2974, allocations: 142.2 kB / 439.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2974, allocations: 3.125 kB / 439.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006057/0.298, allocations: 65.81 kB / 439.4 MB, free: 5.918 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.0008975/0.2989, allocations: 1.243 MB / 440.6 MB, free: 4.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005571/0.2995, allocations: 236.5 kB / 440.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2995, allocations: 1.438 kB / 440.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002322/0.2997, allocations: 121 kB / 441 MB, free: 4.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00076/0.3005, allocations: 60.55 kB / 441 MB, free: 4.711 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00408/0.3046, allocations: 3.497 MB / 444.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002625/0.3048, allocations: 0.7585 MB / 445.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001743/0.305, allocations: 34.08 kB / 445.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001429/0.3051, allocations: 86.64 kB / 445.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3051, allocations: 0 / 445.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03371/0.3389, allocations: 5.798 MB / 451.2 MB, free: 0.582 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.201/8.54, allocations: 8.172 kB / 451.2 MB, free: 0.5781 MB / 350.1 MB " [Timeout remaining time 651] (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: 12.158183685038239]