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.001447/0.001447, allocations: 116.4 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001577/0.001577, allocations: 215.1 kB / 23.75 MB, free: 4.672 MB / 14.72 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 1.413/1.413, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001929/0.001929, allocations: 64.14 kB / 377.8 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.241, allocations: 53.4 MB / 431.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003855/0.2449, allocations: 2.382 MB / 433.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.2464, allocations: 0.7751 MB / 434.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.2465, allocations: 7.938 kB / 434.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.2467, allocations: 43.58 kB / 434.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002685/0.2469, allocations: 87.27 kB / 434.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003515/0.2473, allocations: 115.8 kB / 434.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000403/0.2477, allocations: 302.6 kB / 434.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.2479, allocations: 48.91 kB / 434.9 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.248, allocations: 119.5 kB / 435 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.2482, allocations: 123.4 kB / 435.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.561e-05/0.2482, allocations: 24 kB / 435.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.106e-05/0.2483, allocations: 20 kB / 435.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.395e-05/0.2483, allocations: 59.7 kB / 435.3 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.2485, allocations: 123.4 kB / 435.4 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000351/0.2488, allocations: 283.2 kB / 435.7 MB, free: 2.203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.2488, allocations: 0 / 435.7 MB, free: 2.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2488, allocations: 0 / 435.7 MB, free: 2.203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.2488, allocations: 0 / 435.7 MB, free: 2.203 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.0009632/0.2498, allocations: 489.4 kB / 436.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.2498, allocations: 12.03 kB / 436.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.886e-05/0.2499, allocations: 50.73 kB / 436.2 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.001e-05/0.25, allocations: 32.75 kB / 436.2 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003749/0.2503, allocations: 199.5 kB / 436.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.2503, allocations: 16.81 kB / 436.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.008e-05/0.2504, allocations: 24.38 kB / 436.5 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004451/0.2508, allocations: 246.8 kB / 436.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.2509, allocations: 7.938 kB / 436.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.2509, allocations: 8 kB / 436.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.2509, allocations: 4 kB / 436.7 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00037/0.2513, allocations: 159.8 kB / 436.9 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001386/0.2527, allocations: 0.9843 MB / 437.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005474/0.2532, allocations: 286.4 kB / 438.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.2534, allocations: 87.39 kB / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.2534, allocations: 7.938 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.2534, allocations: 38.56 kB / 438.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.924e-06/0.2534, allocations: 0 / 438.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001972/0.2554, allocations: 1.048 MB / 439.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.82e-05/0.2555, allocations: 136.5 kB / 439.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002095/0.2557, allocations: 210.7 kB / 439.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.2557, allocations: 33.64 kB / 439.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.2558, allocations: 160.7 kB / 439.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.256, allocations: 123 kB / 440 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.2561, allocations: 66.12 kB / 440 MB, free: 13.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.2562, allocations: 338.8 kB / 440.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.2564, allocations: 80.83 kB / 440.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002707/0.2567, allocations: 198 kB / 440.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004876/0.2572, allocations: 301.8 kB / 440.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2572, allocations: 0 / 440.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006189/0.2578, allocations: 345 kB / 441.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.2578, allocations: 6.5 kB / 441.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.2578, allocations: 4 kB / 441.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.2579, allocations: 8 kB / 441.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003565/0.2582, allocations: 96.08 kB / 441.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.2582, allocations: 4 kB / 441.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001618/0.2584, allocations: 23.92 kB / 441.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.615e-05/0.2584, allocations: 16 kB / 441.4 MB, free: 11.93 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.0001632/0.2586, allocations: 145.7 kB / 441.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.2587, allocations: 27.86 kB / 441.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.658e-05/0.2588, allocations: 29.58 kB / 441.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.2588, allocations: 7.984 kB / 441.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/0.2588, allocations: 0 / 441.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.2588, allocations: 11.94 kB / 441.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001514/0.2603, allocations: 0.939 MB / 442.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.2603, allocations: 4 kB / 442.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003594/0.2607, allocations: 75.91 kB / 442.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.876e-06/0.2607, allocations: 11.98 kB / 442.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.2607, allocations: 8 kB / 442.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.745e-06/0.2607, allocations: 7.938 kB / 442.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.2607, allocations: 4 kB / 442.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008561/0.2616, allocations: 0.7004 MB / 443.4 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.234e-05/0.2616, allocations: 23.86 kB / 443.4 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.998e-05/0.2617, allocations: 11.98 kB / 443.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002551/0.2619, allocations: 15.94 kB / 443.5 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.896e-05/0.262, allocations: 35.83 kB / 443.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.262, allocations: 12 kB / 443.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001381/0.2622, allocations: 144.6 kB / 443.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2622, allocations: 0 / 443.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004736/0.2626, allocations: 63.94 kB / 443.7 MB, free: 9.523 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.001148/0.2638, allocations: 1.253 MB / 445 MB, free: 8.215 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000491/0.2643, allocations: 232.1 kB / 445.2 MB, free: 7.988 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2643, allocations: 0 / 445.2 MB, free: 7.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000239/0.2645, allocations: 120.4 kB / 445.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000752/0.2653, allocations: 71.53 kB / 445.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004894/0.2702, allocations: 3.504 MB / 448.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004486/0.2706, allocations: 0.7604 MB / 449.6 MB, free: 3.289 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.2708, allocations: 34.95 kB / 449.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.2709, allocations: 83.41 kB / 449.7 MB, free: 3.172 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.2709, allocations: 0 / 449.7 MB, free: 3.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03763/0.3085, allocations: 6.106 MB / 455.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.44, allocations: 19.36 kB / 455.9 MB, free: 13.18 MB / 366.1 MB " [Timeout remaining time 648] (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/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_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: 15.115184061927721]