Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008787/0.0008787, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008437/0.0008437, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8772/0.8772, allocations: 177 MB / 204.1 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.188e-05/2.35e-05, allocations: 3.125 kB / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.002273/0.002297, allocations: 2.216 MB / 326.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.003327, allocations: 0.7321 MB / 327.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.00343, allocations: 7.938 kB / 327.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.003544, allocations: 39.66 kB / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002253/0.00377, allocations: 91.2 kB / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002694/0.004039, allocations: 123.5 kB / 327.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002513/0.00429, allocations: 322.4 kB / 328 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.004414, allocations: 40.92 kB / 328.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.004554, allocations: 171.6 kB / 328.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/0.00466, allocations: 99.69 kB / 328.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.743e-05/0.004688, allocations: 20 kB / 328.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.184e-05/0.00471, allocations: 24 kB / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.243e-05/0.004742, allocations: 51.75 kB / 328.4 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.802e-05/0.0048, allocations: 83.83 kB / 328.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002068/0.005007, allocations: 279 kB / 328.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.00501, allocations: 3.984 kB / 328.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.005011, allocations: 0 / 328.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.005015, allocations: 0 / 328.8 MB, free: 11.56 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.0006466/0.005662, allocations: 489.5 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.0057, allocations: 15.98 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.824e-05/0.005749, allocations: 54.72 kB / 329.3 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.051e-05/0.005799, allocations: 32.75 kB / 329.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002915/0.006091, allocations: 195.3 kB / 329.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/0.006111, allocations: 24.86 kB / 329.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.183e-05/0.006143, allocations: 24.38 kB / 329.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002949/0.006438, allocations: 236 kB / 329.8 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.006453, allocations: 8.141 kB / 329.8 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.00647, allocations: 12.12 kB / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.006477, allocations: 4 kB / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002195/0.006696, allocations: 163.8 kB / 330 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008034/0.0075, allocations: 0.9301 MB / 330.9 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000323/0.007823, allocations: 286.1 kB / 331.2 MB, free: 8.918 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.007926, allocations: 95.28 kB / 331.3 MB, free: 8.812 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.007944, allocations: 4 kB / 331.3 MB, free: 8.809 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.007966, allocations: 38.56 kB / 331.4 MB, free: 8.762 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.262e-06/0.007967, allocations: 0 / 331.4 MB, free: 8.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001106/0.009073, allocations: 1.044 MB / 332.4 MB, free: 7.602 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/0.009133, allocations: 140.5 kB / 332.5 MB, free: 7.434 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.009277, allocations: 210.7 kB / 332.7 MB, free: 7.219 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.009294, allocations: 29.7 kB / 332.8 MB, free: 7.184 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.07e-05/0.009374, allocations: 152.8 kB / 332.9 MB, free: 7.027 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.453e-05/0.009439, allocations: 123 kB / 333 MB, free: 6.906 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.273e-05/0.009502, allocations: 62.2 kB / 333.1 MB, free: 6.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.306e-05/0.009595, allocations: 350.7 kB / 333.4 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.00971, allocations: 76.97 kB / 333.5 MB, free: 6.414 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.00987, allocations: 198.6 kB / 333.7 MB, free: 6.168 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002882/0.01016, allocations: 310 kB / 334 MB, free: 5.816 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.01016, allocations: 0 / 334 MB, free: 5.816 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003453/0.01051, allocations: 337 kB / 334.3 MB, free: 5.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.01052, allocations: 8 kB / 334.4 MB, free: 5.473 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.01053, allocations: 4.25 kB / 334.4 MB, free: 5.469 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.01054, allocations: 8 kB / 334.4 MB, free: 5.461 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.01073, allocations: 99.83 kB / 334.5 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.01074, allocations: 4 kB / 334.5 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.966e-05/0.01082, allocations: 16 kB / 334.5 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.01083, allocations: 12 kB / 334.5 MB, free: 5.332 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 9.104e-05/0.01093, allocations: 153.6 kB / 334.6 MB, free: 5.172 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.911e-05/0.01097, allocations: 23.86 kB / 334.7 MB, free: 5.148 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.028e-05/0.01101, allocations: 33.47 kB / 334.7 MB, free: 5.117 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.01102, allocations: 7.984 kB / 334.7 MB, free: 5.109 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.01102, allocations: 4 kB / 334.7 MB, free: 5.105 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.01103, allocations: 4 kB / 334.7 MB, free: 5.102 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000789/0.01182, allocations: 0.9039 MB / 335.6 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.01182, allocations: 256 / 335.6 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001837/0.012, allocations: 84.14 kB / 335.7 MB, free: 4.039 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.171e-06/0.01201, allocations: 15.94 kB / 335.7 MB, free: 4.023 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.01203, allocations: 8 kB / 335.7 MB, free: 4.016 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.01203, allocations: 15.86 kB / 335.7 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.01203, allocations: 4 kB / 335.7 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004804/0.01251, allocations: 0.6885 MB / 336.4 MB, free: 3.258 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.58e-05/0.01254, allocations: 27.8 kB / 336.5 MB, free: 3.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.01256, allocations: 8 kB / 336.5 MB, free: 3.223 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.01269, allocations: 11.98 kB / 336.5 MB, free: 3.211 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.728e-05/0.01274, allocations: 35.91 kB / 336.5 MB, free: 3.176 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.01275, allocations: 19.92 kB / 336.5 MB, free: 3.156 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.664e-05/0.01283, allocations: 144.6 kB / 336.7 MB, free: 3.016 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01283, allocations: 0 / 336.7 MB, free: 3.016 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002992/0.01313, allocations: 60 kB / 336.7 MB, free: 2.957 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.0006271/0.01376, allocations: 1.238 MB / 338 MB, free: 1.668 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000302/0.01406, allocations: 229.1 kB / 338.2 MB, free: 1.445 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.01406, allocations: 0 / 338.2 MB, free: 1.445 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001348/0.01419, allocations: 124.7 kB / 338.3 MB, free: 1.324 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004684/0.01466, allocations: 84.3 kB / 338.4 MB, free: 1.246 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002488/0.01715, allocations: 3.33 MB / 341.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.01727, allocations: 151.1 kB / 341.9 MB, free: 13.5 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.477e-05/0.01735, allocations: 42.88 kB / 341.9 MB, free: 13.46 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.363e-05/0.01744, allocations: 84.47 kB / 342 MB, free: 13.38 MB / 314.7 MB Notification: Performance of SimCode: time 2.9e-07/0.01744, allocations: 0 / 342 MB, free: 13.38 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02096/0.0384, allocations: 6.631 MB / 348.6 MB, free: 6.895 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.691/6.729, allocations: 6.844 kB / 348.6 MB, free: 6.895 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 9.06343412399292]