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.001708/0.001708, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.002114/0.002114, allocations: 213.7 kB / 23.74 MB, free: 4.688 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.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 8.004 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 51.92 kB / 377.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2616, allocations: 53.35 MB / 431.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.005056/0.2666, allocations: 2.603 MB / 433.7 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001529/0.2682, allocations: 0.5966 MB / 434.3 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002325/0.2684, allocations: 7.938 kB / 434.3 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003607/0.2688, allocations: 67.41 kB / 434.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000459/0.2692, allocations: 131.1 kB / 434.5 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004281/0.2696, allocations: 167.7 kB / 434.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006918/0.2703, allocations: 0.5109 MB / 435.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.2705, allocations: 48.91 kB / 435.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004607/0.271, allocations: 235.3 kB / 435.5 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005236/0.2715, allocations: 255.2 kB / 435.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001305/0.2716, allocations: 40 kB / 435.8 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000327/0.2719, allocations: 91.98 kB / 435.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002207/0.2722, allocations: 119.6 kB / 436 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003244/0.2725, allocations: 195.1 kB / 436.2 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009336/0.2734, allocations: 0.5102 MB / 436.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.2734, allocations: 0 / 436.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2734, allocations: 0 / 436.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.009e-05/0.2735, allocations: 3.938 kB / 436.7 MB, free: 1.32 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.001627/0.2751, allocations: 0.6414 MB / 437.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.2751, allocations: 8.031 kB / 437.3 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001077/0.2752, allocations: 62.72 kB / 437.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.2754, allocations: 40.7 kB / 437.4 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005457/0.2759, allocations: 245.8 kB / 437.7 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.278e-05/0.2759, allocations: 21.03 kB / 437.7 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.304e-05/0.276, allocations: 36.38 kB / 437.7 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007868/0.2768, allocations: 378.5 kB / 438.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.265e-05/0.2768, allocations: 7.891 kB / 438.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.095e-05/0.2769, allocations: 12 kB / 438.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.2769, allocations: 4 kB / 438.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008143/0.2777, allocations: 398.2 kB / 438.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00227/0.28, allocations: 1.084 MB / 439.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006961/0.2807, allocations: 316.2 kB / 439.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003979/0.2811, allocations: 184.8 kB / 440.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.15e-05/0.2811, allocations: 7.984 kB / 440.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.052e-05/0.2812, allocations: 38.56 kB / 440.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.415e-06/0.2812, allocations: 0 / 440.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004721/0.2859, allocations: 1.699 MB / 441.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.2859, allocations: 55.84 kB / 441.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003213/0.2862, allocations: 257 kB / 442.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.807e-05/0.2863, allocations: 41.7 kB / 442.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.2864, allocations: 161 kB / 442.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001665/0.2866, allocations: 170.6 kB / 442.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.2868, allocations: 94.28 kB / 442.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.287, allocations: 342.7 kB / 442.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004092/0.2874, allocations: 201.2 kB / 443.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004844/0.2878, allocations: 281.7 kB / 443.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006606/0.2885, allocations: 353.7 kB / 443.7 MB, free: 9.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2885, allocations: 0 / 443.7 MB, free: 9.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001298/0.2898, allocations: 0.6069 MB / 444.3 MB, free: 9.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.2898, allocations: 4 kB / 444.3 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.2898, allocations: 4 kB / 444.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007993/0.2906, allocations: 337.5 kB / 444.7 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002788/0.2909, allocations: 67.91 kB / 444.7 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/0.2924, allocations: 1.37 MB / 446.1 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000443/0.2929, allocations: 71.84 kB / 446.2 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.339e-05/0.2929, allocations: 16.12 kB / 446.2 MB, free: 7.402 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.0002407/0.2932, allocations: 170.3 kB / 446.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.791e-05/0.2933, allocations: 39.75 kB / 446.4 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.2934, allocations: 55.61 kB / 446.5 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.2934, allocations: 4 kB / 446.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.2934, allocations: 0 / 446.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.2934, allocations: 3.984 kB / 446.5 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002999/0.2964, allocations: 1.291 MB / 447.8 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-06/0.2964, allocations: 4 kB / 447.8 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002864/0.2967, allocations: 64.06 kB / 447.8 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006508/0.2974, allocations: 301.5 kB / 448.1 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.478e-05/0.2974, allocations: 31.78 kB / 448.1 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001422/0.2988, allocations: 1.308 MB / 449.5 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.2988, allocations: 4.031 kB / 449.5 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00187/0.3007, allocations: 0.9103 MB / 450.4 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002216/0.3009, allocations: 83.62 kB / 450.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.735e-05/0.301, allocations: 20.06 kB / 450.5 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003204/0.3013, allocations: 43.95 kB / 450.5 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002166/0.3016, allocations: 91.77 kB / 450.6 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.664e-05/0.3016, allocations: 23.97 kB / 450.6 MB, free: 2.789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002448/0.3019, allocations: 180.5 kB / 450.8 MB, free: 2.613 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3019, allocations: 0 / 450.8 MB, free: 2.613 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005354/0.3024, allocations: 99.98 kB / 450.9 MB, free: 2.516 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.003457/0.3059, allocations: 1.727 MB / 452.6 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.307, allocations: 465.2 kB / 453.1 MB, free: 436 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.307, allocations: 0 / 453.1 MB, free: 436 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006511/0.3077, allocations: 284.2 kB / 453.4 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005577/0.3082, allocations: 72.25 kB / 453.4 MB, free: 84 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007457/0.3157, allocations: 4.045 MB / 457.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004955/0.3162, allocations: 0.7918 MB / 458.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001718/0.3164, allocations: 30.97 kB / 458.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.3166, allocations: 103.4 kB / 458.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3166, allocations: 0 / 458.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04803/0.3646, allocations: 12.45 MB / 470.9 MB, free: 14.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.35, allocations: 7.438 kB / 470.9 MB, free: 14.56 MB / 382.1 MB " [Timeout remaining time 646] (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.876213291892782]