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.001301/0.001301, allocations: 114 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.001827/0.001827, allocations: 213.1 kB / 23.74 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.485/1.485, allocations: 230.5 MB / 257.4 MB, free: 8.016 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.001925/0.001925, allocations: 63.89 kB / 377.8 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2737, allocations: 53.41 MB / 431.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00436/0.2781, allocations: 2.594 MB / 433.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.2792, allocations: 0.5966 MB / 434.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.2794, allocations: 7.938 kB / 434.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002756/0.2796, allocations: 67.44 kB / 434.4 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002861/0.2799, allocations: 131.1 kB / 434.6 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.2802, allocations: 167.7 kB / 434.7 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005475/0.2808, allocations: 0.5148 MB / 435.2 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.2809, allocations: 40.92 kB / 435.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002695/0.2812, allocations: 235.3 kB / 435.5 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003687/0.2815, allocations: 263.1 kB / 435.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.867e-05/0.2816, allocations: 40 kB / 435.8 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001723/0.2818, allocations: 99.97 kB / 435.9 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000156/0.2819, allocations: 115.6 kB / 436 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002119/0.2822, allocations: 191.1 kB / 436.2 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006436/0.2828, allocations: 0.5025 MB / 436.7 MB, free: 1.133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.2828, allocations: 0 / 436.7 MB, free: 1.133 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2828, allocations: 3.938 kB / 436.7 MB, free: 1.129 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.2828, allocations: 3.938 kB / 436.7 MB, free: 1.125 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.00143/0.2842, allocations: 0.6375 MB / 437.4 MB, free: 464 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.2843, allocations: 8.031 kB / 437.4 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001103/0.2844, allocations: 70.72 kB / 437.4 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.134e-05/0.2845, allocations: 36.7 kB / 437.5 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005058/0.285, allocations: 245.8 kB / 437.7 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.864e-05/0.285, allocations: 21.03 kB / 437.7 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.139e-05/0.2851, allocations: 32.38 kB / 437.8 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007625/0.2859, allocations: 374.5 kB / 438.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/0.2859, allocations: 7.891 kB / 438.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.875e-05/0.2859, allocations: 12 kB / 438.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/0.2859, allocations: 12 kB / 438.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008295/0.2868, allocations: 390.4 kB / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/0.289, allocations: 1.099 MB / 439.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006463/0.2896, allocations: 313.6 kB / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003677/0.29, allocations: 176.8 kB / 440.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.918e-05/0.29, allocations: 4 kB / 440.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.346e-05/0.2901, allocations: 38.56 kB / 440.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.285e-06/0.2901, allocations: 4 kB / 440.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004678/0.2948, allocations: 1.7 MB / 441.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.435e-05/0.2948, allocations: 59.84 kB / 441.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003136/0.2951, allocations: 257 kB / 442.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.477e-05/0.2952, allocations: 37.7 kB / 442.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.2953, allocations: 161 kB / 442.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/0.2955, allocations: 174.6 kB / 442.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.2957, allocations: 94.28 kB / 442.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.2958, allocations: 346.7 kB / 443 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004111/0.2962, allocations: 189.2 kB / 443.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004553/0.2967, allocations: 273.8 kB / 443.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006904/0.2974, allocations: 353.6 kB / 443.8 MB, free: 9.762 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2974, allocations: 3.938 kB / 443.8 MB, free: 9.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001188/0.2986, allocations: 0.6029 MB / 444.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.2986, allocations: 8 kB / 444.4 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.2986, allocations: 4.062 kB / 444.4 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007453/0.2993, allocations: 349.6 kB / 444.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002895/0.2996, allocations: 67.91 kB / 444.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001461/0.3011, allocations: 1.358 MB / 446.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004333/0.3015, allocations: 71.98 kB / 446.2 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.044e-05/0.3016, allocations: 19.98 kB / 446.2 MB, free: 7.215 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.0002352/0.3018, allocations: 161.7 kB / 446.4 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.586e-05/0.3019, allocations: 43.7 kB / 446.4 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001278/0.302, allocations: 55.61 kB / 446.5 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-06/0.302, allocations: 4 kB / 446.5 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.302, allocations: 0 / 446.5 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.302, allocations: 3.984 kB / 446.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002914/0.305, allocations: 1.298 MB / 447.8 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.305, allocations: 0 / 447.8 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002737/0.3052, allocations: 63.91 kB / 447.9 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006077/0.3058, allocations: 313.6 kB / 448.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.364e-05/0.3059, allocations: 23.92 kB / 448.2 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.3072, allocations: 1.316 MB / 449.5 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.3072, allocations: 3.938 kB / 449.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001804/0.309, allocations: 0.9101 MB / 450.4 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.3092, allocations: 83.67 kB / 450.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.273e-05/0.3093, allocations: 19.98 kB / 450.5 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000297/0.3096, allocations: 31.97 kB / 450.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/0.3098, allocations: 99.69 kB / 450.6 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.122e-05/0.3098, allocations: 23.98 kB / 450.7 MB, free: 2.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001986/0.31, allocations: 184.5 kB / 450.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.31, allocations: 0 / 450.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004452/0.3105, allocations: 96 kB / 450.9 MB, free: 2.32 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.003351/0.3138, allocations: 1.715 MB / 452.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001179/0.315, allocations: 465.3 kB / 453.1 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.315, allocations: 3.938 kB / 453.1 MB, free: 228 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006326/0.3156, allocations: 279.6 kB / 453.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005912/0.3162, allocations: 68.97 kB / 453.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006894/0.3231, allocations: 4.06 MB / 457.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005506/0.3237, allocations: 0.7879 MB / 458.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001556/0.3238, allocations: 34.97 kB / 458.3 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001874/0.324, allocations: 103.4 kB / 458.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.324, allocations: 4 kB / 458.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05793/0.3819, allocations: 12.44 MB / 470.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.23, allocations: 8 kB / 470.9 MB, free: 14.34 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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_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.csv","/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] "Error: Could not read variable brake.mode in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.mode from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startBackward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startBackward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startForward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startForward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.mode in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.mode from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startBackward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startBackward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startForward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startForward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.852502183999604]