Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.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.001242/0.001242, allocations: 112.5 kB / 21.22 MB, free: 0.75 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.001455/0.001455, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.385/1.385, allocations: 230.6 MB / 258.3 MB, free: 8.016 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.Brake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 43.94 kB / 378.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2467, allocations: 53.37 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004108/0.2508, allocations: 2.596 MB / 434.5 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.2518, allocations: 0.5965 MB / 435.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.2519, allocations: 7.938 kB / 435.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002905/0.2522, allocations: 67.44 kB / 435.2 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002713/0.2525, allocations: 135.1 kB / 435.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002847/0.2528, allocations: 167.7 kB / 435.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005222/0.2533, allocations: 0.5108 MB / 436 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.2534, allocations: 44.92 kB / 436 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002746/0.2537, allocations: 239.3 kB / 436.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003454/0.2541, allocations: 247.2 kB / 436.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.979e-05/0.2541, allocations: 44 kB / 436.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001683/0.2543, allocations: 104 kB / 436.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.2545, allocations: 111.7 kB / 436.8 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001894/0.2547, allocations: 203 kB / 437 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006598/0.2553, allocations: 0.4986 MB / 437.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2553, allocations: 3.938 kB / 437.5 MB, free: 1.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2553, allocations: 0 / 437.5 MB, free: 1.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.2553, allocations: 0 / 437.5 MB, free: 1.324 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.001305/0.2566, allocations: 0.6375 MB / 438.1 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.2567, allocations: 12.03 kB / 438.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.823e-05/0.2567, allocations: 8.844 kB / 438.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.658e-05/0.2568, allocations: 66.72 kB / 438.2 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.514e-05/0.2569, allocations: 40.7 kB / 438.2 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004298/0.2573, allocations: 245.8 kB / 438.5 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.2573, allocations: 25.03 kB / 438.5 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.606e-05/0.2574, allocations: 28.38 kB / 438.5 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007256/0.2581, allocations: 374.3 kB / 438.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.2581, allocations: 7.953 kB / 438.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.296e-05/0.2582, allocations: 16 kB / 438.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.2582, allocations: 8 kB / 438.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007963/0.259, allocations: 394.3 kB / 439.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.261, allocations: 1.095 MB / 440.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005965/0.2616, allocations: 312.2 kB / 440.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003463/0.2619, allocations: 176.8 kB / 440.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.674e-05/0.2619, allocations: 8 kB / 440.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.262, allocations: 34.56 kB / 440.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.462e-06/0.262, allocations: 0 / 440.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004467/0.2664, allocations: 1.711 MB / 442.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.2665, allocations: 59.84 kB / 442.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002773/0.2667, allocations: 257 kB / 442.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.615e-05/0.2668, allocations: 41.7 kB / 443 MB, free: 11.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.2669, allocations: 157.1 kB / 443.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.2671, allocations: 174.6 kB / 443.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.2672, allocations: 98.28 kB / 443.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.2674, allocations: 342.8 kB / 443.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000392/0.2678, allocations: 189.2 kB / 443.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004413/0.2682, allocations: 273.7 kB / 444.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006308/0.2689, allocations: 353.7 kB / 444.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2689, allocations: 0 / 444.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001213/0.2701, allocations: 0.6029 MB / 445.1 MB, free: 9.324 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.2701, allocations: 8 kB / 445.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.2701, allocations: 0 / 445.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007277/0.2708, allocations: 349.6 kB / 445.5 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002653/0.2711, allocations: 67.84 kB / 445.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00135/0.2724, allocations: 1.366 MB / 446.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004805/0.2729, allocations: 75.94 kB / 447 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.851e-05/0.273, allocations: 19.98 kB / 447 MB, free: 7.391 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.0002368/0.2732, allocations: 162.4 kB / 447.2 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.013e-05/0.2733, allocations: 35.75 kB / 447.2 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.2734, allocations: 55.61 kB / 447.2 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.2734, allocations: 4.062 kB / 447.3 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.2734, allocations: 8 kB / 447.3 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.822e-06/0.2734, allocations: 3.984 kB / 447.3 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002749/0.2762, allocations: 1.295 MB / 448.6 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.2762, allocations: 3.938 kB / 448.6 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002727/0.2765, allocations: 63.91 kB / 448.6 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006303/0.2771, allocations: 301.6 kB / 448.9 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.575e-05/0.2771, allocations: 27.92 kB / 448.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.2784, allocations: 1.308 MB / 450.3 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.2784, allocations: 7.922 kB / 450.3 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001758/0.2802, allocations: 0.9104 MB / 451.2 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001715/0.2804, allocations: 83.67 kB / 451.3 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.322e-05/0.2804, allocations: 19.98 kB / 451.3 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003001/0.2807, allocations: 31.97 kB / 451.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002034/0.2809, allocations: 95.75 kB / 451.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.241e-05/0.281, allocations: 23.98 kB / 451.4 MB, free: 2.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001896/0.2812, allocations: 184.5 kB / 451.6 MB, free: 2.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2812, allocations: 0 / 451.6 MB, free: 2.605 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004218/0.2816, allocations: 96 kB / 451.7 MB, free: 2.512 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.00328/0.2849, allocations: 1.722 MB / 453.4 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001134/0.286, allocations: 469.2 kB / 453.9 MB, free: 428 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.286, allocations: 0 / 453.9 MB, free: 428 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00062/0.2866, allocations: 279.7 kB / 454.1 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005683/0.2872, allocations: 80.19 kB / 454.2 MB, free: 76 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007318/0.2945, allocations: 4.05 MB / 458.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004697/0.295, allocations: 0.7879 MB / 459.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.2951, allocations: 34.95 kB / 459.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/0.2953, allocations: 111.4 kB / 459.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.2953, allocations: 4 kB / 459.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03893/0.3343, allocations: 12.46 MB / 471.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/12.77, allocations: 10.97 kB / 471.7 MB, free: 14.54 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.238119961984921]