Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.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.001308/0.001308, allocations: 112.5 kB / 20.43 MB, free: 1.469 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.001368/0.001368, allocations: 213.2 kB / 23.74 MB, free: 4.695 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.446/1.446, allocations: 230.5 MB / 257.4 MB, free: 8.027 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.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 71.81 kB / 377.8 MB, free: 3.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2735, allocations: 53.41 MB / 431.2 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004219/0.2777, allocations: 2.594 MB / 433.8 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.2789, allocations: 0.5927 MB / 434.4 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001798/0.2791, allocations: 7.938 kB / 434.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002978/0.2794, allocations: 71.42 kB / 434.4 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003877/0.2798, allocations: 127.1 kB / 434.6 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000385/0.2802, allocations: 171.7 kB / 434.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006545/0.2809, allocations: 0.507 MB / 435.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.281, allocations: 48.91 kB / 435.3 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003452/0.2813, allocations: 235.3 kB / 435.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004151/0.2818, allocations: 255.2 kB / 435.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.652e-05/0.2819, allocations: 40 kB / 435.8 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001995/0.282, allocations: 95.98 kB / 435.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001532/0.2822, allocations: 115.6 kB / 436 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002074/0.2824, allocations: 195.1 kB / 436.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007232/0.2831, allocations: 0.5141 MB / 436.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2831, allocations: 0 / 436.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2831, allocations: 0 / 436.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.133e-05/0.2832, allocations: 0 / 436.7 MB, free: 1.168 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001793/0.285, allocations: 0.6375 MB / 437.4 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.285, allocations: 8.031 kB / 437.4 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000123/0.2851, allocations: 70.72 kB / 437.4 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.2853, allocations: 36.7 kB / 437.5 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004929/0.2858, allocations: 245.8 kB / 437.7 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.213e-05/0.2858, allocations: 21.03 kB / 437.7 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.965e-05/0.2859, allocations: 36.38 kB / 437.8 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007558/0.2866, allocations: 378.5 kB / 438.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.2866, allocations: 7.891 kB / 438.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.816e-05/0.2867, allocations: 12 kB / 438.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.2867, allocations: 8 kB / 438.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008093/0.2875, allocations: 394.2 kB / 438.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002185/0.2897, allocations: 1.088 MB / 439.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00063/0.2903, allocations: 314.2 kB / 439.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003643/0.2907, allocations: 184.8 kB / 440.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.103e-05/0.2907, allocations: 7.984 kB / 440.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.2908, allocations: 42.5 kB / 440.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.893e-06/0.2908, allocations: 0 / 440.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004565/0.2953, allocations: 1.696 MB / 441.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.2954, allocations: 55.84 kB / 441.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.2957, allocations: 265 kB / 442.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.46e-05/0.2957, allocations: 41.69 kB / 442.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.2959, allocations: 157 kB / 442.4 MB, free: 11.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.296, allocations: 170.6 kB / 442.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001624/0.2962, allocations: 94.28 kB / 442.6 MB, free: 11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.2963, allocations: 346.7 kB / 443 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000398/0.2967, allocations: 193.2 kB / 443.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004444/0.2972, allocations: 273.7 kB / 443.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006264/0.2978, allocations: 349.7 kB / 443.8 MB, free: 9.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2978, allocations: 0 / 443.8 MB, free: 9.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001232/0.2991, allocations: 0.6068 MB / 444.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.2991, allocations: 8 kB / 444.4 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.2991, allocations: 48 / 444.4 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007646/0.2998, allocations: 345.6 kB / 444.7 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002714/0.3001, allocations: 67.97 kB / 444.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/0.3015, allocations: 1.362 MB / 446.1 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004288/0.3019, allocations: 72.03 kB / 446.2 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.217e-05/0.3019, allocations: 20.12 kB / 446.2 MB, free: 7.258 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002326/0.3022, allocations: 169.6 kB / 446.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.939e-05/0.3023, allocations: 39.7 kB / 446.4 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.3024, allocations: 51.62 kB / 446.5 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.3024, allocations: 7.984 kB / 446.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3024, allocations: 0 / 446.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.3024, allocations: 0 / 446.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002894/0.3053, allocations: 1.302 MB / 447.8 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.3053, allocations: 0 / 447.8 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002739/0.3056, allocations: 64.06 kB / 447.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006225/0.3062, allocations: 313.5 kB / 448.2 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.137e-05/0.3063, allocations: 27.84 kB / 448.2 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001278/0.3076, allocations: 1.308 MB / 449.5 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.3076, allocations: 4.031 kB / 449.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001808/0.3094, allocations: 0.9138 MB / 450.4 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002221/0.3096, allocations: 79.67 kB / 450.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.43e-05/0.3097, allocations: 20 kB / 450.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003245/0.31, allocations: 39.95 kB / 450.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.3102, allocations: 91.77 kB / 450.6 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.369e-05/0.3103, allocations: 23.97 kB / 450.7 MB, free: 2.637 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002472/0.3105, allocations: 180.5 kB / 450.8 MB, free: 2.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3105, allocations: 0 / 450.8 MB, free: 2.461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005192/0.311, allocations: 99.98 kB / 450.9 MB, free: 2.363 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003486/0.3145, allocations: 1.727 MB / 452.7 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001116/0.3156, allocations: 461.2 kB / 453.1 MB, free: 260 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3157, allocations: 0 / 453.1 MB, free: 260 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006312/0.3163, allocations: 280.2 kB / 453.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005589/0.3168, allocations: 66.59 kB / 453.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007096/0.3239, allocations: 4.056 MB / 457.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000478/0.3244, allocations: 0.7957 MB / 458.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001638/0.3246, allocations: 30.97 kB / 458.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001916/0.3248, allocations: 103.4 kB / 458.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of SimCode: time 1.163e-06/0.3248, allocations: 0 / 458.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04586/0.3706, allocations: 12.43 MB / 470.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13, allocations: 6.453 kB / 470.9 MB, free: 14.38 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.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.451142937876284]