Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 193.9 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 44.06 kB / 370.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2574, allocations: 52.18 MB / 422.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003724/0.2612, allocations: 2.305 MB / 424.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.2622, allocations: 491.3 kB / 425.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.2623, allocations: 11.88 kB / 425.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.2625, allocations: 55.5 kB / 425.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.2627, allocations: 83.33 kB / 425.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005216/0.2632, allocations: 199.6 kB / 425.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00053/0.2637, allocations: 491 kB / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.2639, allocations: 48.7 kB / 426.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002788/0.2642, allocations: 219.4 kB / 426.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003215/0.2645, allocations: 227.2 kB / 426.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.722e-05/0.2646, allocations: 36 kB / 426.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.2647, allocations: 83.95 kB / 426.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.2649, allocations: 99.66 kB / 426.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001691/0.265, allocations: 159.3 kB / 427 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005502/0.2656, allocations: 464.2 kB / 427.5 MB, free: 9.441 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2656, allocations: 0 / 427.5 MB, free: 9.441 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2656, allocations: 7.938 kB / 427.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.2656, allocations: 0 / 427.5 MB, free: 9.434 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.00121/0.2668, allocations: 0.5949 MB / 428.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.2668, allocations: 8.031 kB / 428.1 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.692e-05/0.2669, allocations: 66.72 kB / 428.1 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.44e-05/0.267, allocations: 44.7 kB / 428.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/0.2674, allocations: 226.9 kB / 428.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.588e-05/0.2675, allocations: 21.03 kB / 428.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.829e-05/0.2675, allocations: 32.31 kB / 428.5 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007034/0.2683, allocations: 378.5 kB / 428.8 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.2683, allocations: 7.938 kB / 428.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.656e-05/0.2683, allocations: 12 kB / 428.8 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.2683, allocations: 8 kB / 428.9 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007642/0.2691, allocations: 398.3 kB / 429.2 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/0.271, allocations: 0.9905 MB / 430.2 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005464/0.2716, allocations: 276.1 kB / 430.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003487/0.2719, allocations: 193.7 kB / 430.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.928e-05/0.272, allocations: 4 kB / 430.7 MB, free: 6.055 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.272, allocations: 42.5 kB / 430.7 MB, free: 6.004 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.914e-06/0.272, allocations: 0 / 430.7 MB, free: 6.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004538/0.2765, allocations: 1.73 MB / 432.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.2766, allocations: 55.41 kB / 432.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.2769, allocations: 240.8 kB / 432.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.24e-05/0.2769, allocations: 41.69 kB / 432.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.277, allocations: 157 kB / 433 MB, free: 3.699 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.2772, allocations: 154.7 kB / 433.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001727/0.2773, allocations: 106.1 kB / 433.2 MB, free: 3.438 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.2775, allocations: 342.8 kB / 433.5 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003933/0.2779, allocations: 208.9 kB / 433.7 MB, free: 2.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004486/0.2783, allocations: 280.2 kB / 434 MB, free: 2.594 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00064/0.279, allocations: 381.6 kB / 434.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.279, allocations: 4 kB / 434.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001523/0.2805, allocations: 0.6925 MB / 435.1 MB, free: 1.484 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.2805, allocations: 6.812 kB / 435.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.2805, allocations: 4 kB / 435.1 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008538/0.2814, allocations: 493.6 kB / 435.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000287/0.2817, allocations: 75.84 kB / 435.7 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/0.2831, allocations: 1.386 MB / 437 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004444/0.2835, allocations: 67.94 kB / 437.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-05/0.2836, allocations: 16 kB / 437.1 MB, free: 15.39 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 (49): * Single equations (assignments): 47 * 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,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002228/0.2838, allocations: 163.1 kB / 437.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.009e-05/0.2839, allocations: 31.81 kB / 437.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001261/0.284, allocations: 55.23 kB / 437.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.284, allocations: 4 kB / 437.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.284, allocations: 0 / 437.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.284, allocations: 3.984 kB / 437.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002808/0.2868, allocations: 1.26 MB / 438.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.2868, allocations: 3.938 kB / 438.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002912/0.2871, allocations: 59.92 kB / 438.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000752/0.2879, allocations: 473.5 kB / 439.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.349e-05/0.2879, allocations: 19.98 kB / 439.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.2892, allocations: 1.335 MB / 440.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.2892, allocations: 4.031 kB / 440.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001825/0.291, allocations: 0.9447 MB / 441.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002055/0.2913, allocations: 75.8 kB / 441.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.685e-05/0.2913, allocations: 15.94 kB / 441.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002909/0.2916, allocations: 43.95 kB / 441.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002293/0.2919, allocations: 83.83 kB / 441.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.65e-05/0.2919, allocations: 23.97 kB / 441.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001912/0.2921, allocations: 168.5 kB / 441.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2921, allocations: 0 / 441.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004723/0.2926, allocations: 104 kB / 442 MB, free: 10.37 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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002313/0.2949, allocations: 1.526 MB / 443.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.296, allocations: 494.3 kB / 444 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.296, allocations: 4.062 kB / 444 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006122/0.2966, allocations: 276 kB / 444.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005199/0.2971, allocations: 52.8 kB / 444.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007242/0.3043, allocations: 4.133 MB / 448.4 MB, free: 3.699 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002016/0.3045, allocations: 173.8 kB / 448.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001669/0.3047, allocations: 34.97 kB / 448.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.3049, allocations: 91.41 kB / 448.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3049, allocations: 0 / 448.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04432/0.3492, allocations: 10.89 MB / 459.6 MB, free: 8.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.3, allocations: 10.89 kB / 459.6 MB, free: 8.672 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable brake.mode in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.mode from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startBackward in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startBackward from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startForward in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startForward from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.mode in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.mode from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startBackward in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startBackward from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startForward in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startForward from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.82422014977783]