Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 114.4 kB / 17.74 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.1 MB / 224.5 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001693/0.001693, allocations: 59.91 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09699/0.0987, allocations: 46.61 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003843/0.1026, allocations: 2.423 MB / 377.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.1038, allocations: 0.4961 MB / 377.6 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001419/0.1039, allocations: 4 kB / 377.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002477/0.1042, allocations: 51.52 kB / 377.6 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.1044, allocations: 83.31 kB / 377.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005026/0.1049, allocations: 191.6 kB / 377.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005189/0.1054, allocations: 495.1 kB / 378.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.1056, allocations: 76.64 kB / 378.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002447/0.1059, allocations: 215.4 kB / 378.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003279/0.1062, allocations: 239.2 kB / 378.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.317e-05/0.1063, allocations: 36 kB / 378.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000209/0.1065, allocations: 91.94 kB / 379 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.1067, allocations: 95.72 kB / 379.1 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002392/0.1069, allocations: 187.1 kB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1811/0.288, allocations: 463.9 kB / 379.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.288, allocations: 0 / 379.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2881, allocations: 0 / 379.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.551e-05/0.2881, allocations: 0.8438 kB / 379.7 MB, free: 10.25 MB / 318.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.001358/0.2894, allocations: 0.6661 MB / 380.4 MB, free: 9.789 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.2895, allocations: 9.625 kB / 380.4 MB, free: 9.789 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.459e-05/0.2896, allocations: 62.33 kB / 380.5 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.186e-05/0.2897, allocations: 42.08 kB / 380.5 MB, free: 9.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004439/0.2901, allocations: 281.8 kB / 380.8 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.633e-05/0.2902, allocations: 23.19 kB / 380.8 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.557e-05/0.2903, allocations: 33.42 kB / 380.8 MB, free: 9.504 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008195/0.2911, allocations: 376.5 kB / 381.2 MB, free: 9.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.479e-05/0.2911, allocations: 7.609 kB / 381.2 MB, free: 9.465 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.11e-05/0.2912, allocations: 11.81 kB / 381.2 MB, free: 9.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.2912, allocations: 10.47 kB / 381.2 MB, free: 9.465 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008972/0.2921, allocations: 406.7 kB / 381.6 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002146/0.2943, allocations: 1.086 MB / 382.7 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005921/0.2949, allocations: 303.6 kB / 383 MB, free: 8.996 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003526/0.2952, allocations: 199.2 kB / 383.2 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.183e-05/0.2953, allocations: 3.844 kB / 383.2 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.2953, allocations: 36.88 kB / 383.3 MB, free: 8.949 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.886e-06/0.2953, allocations: 0 / 383.3 MB, free: 8.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004497/0.2998, allocations: 2.045 MB / 385.3 MB, free: 8.121 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.809e-05/0.2999, allocations: 56.31 kB / 385.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002637/0.3001, allocations: 233.3 kB / 385.6 MB, free: 7.918 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.303e-05/0.3002, allocations: 43.66 kB / 385.6 MB, free: 7.875 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.252e-05/0.3003, allocations: 152.8 kB / 385.8 MB, free: 7.738 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.3004, allocations: 161.3 kB / 385.9 MB, free: 7.621 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.3006, allocations: 97.92 kB / 386 MB, free: 7.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.61e-05/0.3007, allocations: 341.6 kB / 386.4 MB, free: 7.242 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003916/0.3011, allocations: 214 kB / 386.6 MB, free: 7.168 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004337/0.3015, allocations: 286.7 kB / 386.8 MB, free: 7.016 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006168/0.3021, allocations: 380.7 kB / 387.2 MB, free: 6.832 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3021, allocations: 0 / 387.2 MB, free: 6.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001462/0.3036, allocations: 0.696 MB / 387.9 MB, free: 6.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.3036, allocations: 6.672 kB / 387.9 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.3037, allocations: 1.469 kB / 387.9 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009278/0.3046, allocations: 498.8 kB / 388.4 MB, free: 6.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000297/0.3049, allocations: 75.52 kB / 388.5 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/0.306, allocations: 1.393 MB / 389.9 MB, free: 5.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000463/0.3064, allocations: 69.34 kB / 389.9 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.736e-05/0.3065, allocations: 20.31 kB / 390 MB, free: 5.234 MB / 318.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.0001948/0.3067, allocations: 175.4 kB / 390.1 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.723e-05/0.3068, allocations: 31.97 kB / 390.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.3069, allocations: 47.44 kB / 390.2 MB, free: 5.023 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.303e-06/0.3069, allocations: 4.438 kB / 390.2 MB, free: 5.023 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.3069, allocations: 1.062 kB / 390.2 MB, free: 5.023 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.3069, allocations: 6.578 kB / 390.2 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002682/0.3096, allocations: 1.355 MB / 391.6 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.3096, allocations: 1.312 kB / 391.6 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.3099, allocations: 69.77 kB / 391.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007569/0.3107, allocations: 460.2 kB / 392.1 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.863e-05/0.3108, allocations: 19.7 kB / 392.1 MB, free: 4.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009389/0.3117, allocations: 1.344 MB / 393.5 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3117, allocations: 1.156 kB / 393.5 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001735/0.3135, allocations: 0.9422 MB / 394.4 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001986/0.3137, allocations: 154.6 kB / 394.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.639e-05/0.3138, allocations: 23.12 kB / 394.6 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002872/0.314, allocations: 42.81 kB / 394.6 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.3143, allocations: 81.66 kB / 394.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.227e-05/0.3143, allocations: 21.33 kB / 394.7 MB, free: 2.418 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001424/0.3145, allocations: 173.9 kB / 394.9 MB, free: 2.316 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3145, allocations: 0 / 394.9 MB, free: 2.316 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005022/0.315, allocations: 104.4 kB / 395 MB, free: 2.301 MB / 318.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.002015/0.317, allocations: 1.518 MB / 396.5 MB, free: 1.297 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.3182, allocations: 0.5183 MB / 397 MB, free: 1.129 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3182, allocations: 3.375 kB / 397 MB, free: 1.129 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006055/0.3188, allocations: 291.8 kB / 397.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005402/0.3194, allocations: 49.52 kB / 397.4 MB, free: 1.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007133/0.3265, allocations: 4.141 MB / 401.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004526/0.327, allocations: 0.7788 MB / 402.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001822/0.3272, allocations: 36.52 kB / 402.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/0.3274, allocations: 93.61 kB / 402.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3274, allocations: 0 / 402.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04276/0.3702, allocations: 11.68 MB / 414.1 MB, free: 7.152 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.89, allocations: 4.062 kB / 414.1 MB, free: 7.148 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches