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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001164/0.001164, allocations: 122.2 kB / 17.77 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 202 kB / 18.72 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2835, allocations: 50.53 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003977/0.2875, allocations: 2.583 MB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.2886, allocations: 0.5772 MB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.2887, allocations: 4 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003127/0.289, allocations: 75.36 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002926/0.2893, allocations: 139 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002791/0.2896, allocations: 163.7 kB / 412.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005038/0.2901, allocations: 0.503 MB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.2903, allocations: 80.67 kB / 412.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002427/0.2906, allocations: 219.4 kB / 413.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003072/0.2909, allocations: 251.1 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.783e-05/0.291, allocations: 44 kB / 413.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.2911, allocations: 99.91 kB / 413.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.2913, allocations: 111.7 kB / 413.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001924/0.2915, allocations: 203 kB / 413.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005634/0.2921, allocations: 0.4972 MB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2921, allocations: 0 / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2921, allocations: 0 / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.2921, allocations: 0 / 414.2 MB, free: 12 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.001332/0.2934, allocations: 0.7166 MB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.2935, allocations: 8.031 kB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.271e-05/0.2936, allocations: 70.66 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.2937, allocations: 44.7 kB / 415.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004387/0.2941, allocations: 295.8 kB / 415.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.213e-05/0.2942, allocations: 25.03 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.027e-05/0.2942, allocations: 32.31 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007173/0.295, allocations: 378.5 kB / 415.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/0.295, allocations: 11.89 kB / 415.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.201e-05/0.2951, allocations: 8 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.2951, allocations: 8 kB / 415.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007672/0.2958, allocations: 386.4 kB / 416.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001909/0.2978, allocations: 1.124 MB / 417.3 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005891/0.2984, allocations: 338.5 kB / 417.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003532/0.2987, allocations: 192.8 kB / 417.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.827e-05/0.2988, allocations: 4 kB / 417.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.2988, allocations: 38.56 kB / 417.9 MB, free: 8.148 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.553e-06/0.2988, allocations: 0 / 417.9 MB, free: 8.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.004687/0.3035, allocations: 2.012 MB / 419.9 MB, free: 6 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.662e-05/0.3036, allocations: 59.78 kB / 420 MB, free: 5.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002712/0.3038, allocations: 256.9 kB / 420.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.224e-05/0.3039, allocations: 45.7 kB / 420.2 MB, free: 5.621 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.304, allocations: 145.1 kB / 420.4 MB, free: 5.477 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.3042, allocations: 174.6 kB / 420.6 MB, free: 5.305 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/0.3043, allocations: 102.2 kB / 420.7 MB, free: 5.199 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.3045, allocations: 342.8 kB / 421 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003915/0.3049, allocations: 193 kB / 421.2 MB, free: 4.668 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004381/0.3053, allocations: 268.8 kB / 421.4 MB, free: 4.379 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006361/0.3059, allocations: 357.6 kB / 421.8 MB, free: 4.008 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.306, allocations: 0 / 421.8 MB, free: 4.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001194/0.3072, allocations: 0.6107 MB / 422.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.3072, allocations: 6.344 kB / 422.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.3072, allocations: 4 kB / 422.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007032/0.3079, allocations: 349.5 kB / 422.8 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002758/0.3082, allocations: 75.91 kB / 422.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001281/0.3095, allocations: 1.362 MB / 424.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004523/0.31, allocations: 72 kB / 424.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.31, allocations: 19.98 kB / 424.3 MB, free: 1.449 MB / 334.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.0002019/0.3102, allocations: 165.2 kB / 424.4 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.789e-05/0.3103, allocations: 35.75 kB / 424.5 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.3104, allocations: 55.61 kB / 424.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3104, allocations: 4 kB / 424.5 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.3104, allocations: 4 kB / 424.5 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.3105, allocations: 3.984 kB / 424.5 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002769/0.3132, allocations: 1.343 MB / 425.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.3133, allocations: 3.984 kB / 425.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.3135, allocations: 55.92 kB / 425.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005914/0.3141, allocations: 305.6 kB / 426.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.607e-05/0.3142, allocations: 23.92 kB / 426.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001195/0.3154, allocations: 1.308 MB / 427.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3154, allocations: 0 / 427.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/0.3171, allocations: 0.9217 MB / 428.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002057/0.3173, allocations: 165 kB / 428.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.386e-05/0.3174, allocations: 19.94 kB / 428.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003297/0.3178, allocations: 39.89 kB / 428.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/0.318, allocations: 91.8 kB / 428.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.133e-05/0.318, allocations: 15.98 kB / 428.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001848/0.3182, allocations: 192.4 kB / 429 MB, free: 12.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3182, allocations: 4 kB / 429 MB, free: 12.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004486/0.3187, allocations: 99.94 kB / 429.1 MB, free: 12.42 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.002746/0.3214, allocations: 1.713 MB / 430.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00111/0.3225, allocations: 0.5018 MB / 431.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3226, allocations: 0 / 431.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006088/0.3232, allocations: 291.6 kB / 431.6 MB, free: 9.992 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005378/0.3237, allocations: 56.47 kB / 431.7 MB, free: 9.938 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006738/0.3305, allocations: 4.08 MB / 435.7 MB, free: 5.688 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.3309, allocations: 0.7878 MB / 436.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001467/0.331, allocations: 30.97 kB / 436.6 MB, free: 4.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001715/0.3312, allocations: 107.4 kB / 436.7 MB, free: 4.734 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3312, allocations: 0 / 436.7 MB, free: 4.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0387/0.3699, allocations: 11.85 MB / 448.5 MB, free: 9.055 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.03, allocations: 12.88 kB / 448.5 MB, free: 9.043 MB / 366.1 MB (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) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches