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.001101/0.001102, allocations: 102.5 kB / 17.73 MB, free: 5.371 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.001167/0.001167, allocations: 191 kB / 18.66 MB, free: 4.445 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.283/1.283, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001349/0.001349, allocations: 51.92 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08094/0.0823, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003725/0.08606, allocations: 2.427 MB / 377.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.08732, allocations: 0.4961 MB / 377.5 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002233/0.08756, allocations: 0 / 377.5 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000243/0.08785, allocations: 55.5 kB / 377.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002377/0.0881, allocations: 79.28 kB / 377.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000517/0.08862, allocations: 195.7 kB / 377.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005215/0.08916, allocations: 491.1 kB / 378.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.08934, allocations: 80.88 kB / 378.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002819/0.08963, allocations: 219.4 kB / 378.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003496/0.08999, allocations: 235.2 kB / 378.9 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.318e-05/0.09007, allocations: 40 kB / 378.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001799/0.09026, allocations: 91.89 kB / 379 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.09038, allocations: 99.7 kB / 379.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.09056, allocations: 175.2 kB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1911/0.2817, allocations: 462.9 kB / 379.7 MB, free: 9.836 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.122e-05/0.2818, allocations: 0.5 kB / 379.7 MB, free: 9.836 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.2818, allocations: 0 / 379.7 MB, free: 9.836 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.672e-05/0.2818, allocations: 0.8438 kB / 379.7 MB, free: 9.836 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.001364/0.2832, allocations: 0.6647 MB / 380.4 MB, free: 9.395 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.2832, allocations: 9.625 kB / 380.4 MB, free: 9.395 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.377e-05/0.2833, allocations: 63.33 kB / 380.5 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.443e-05/0.2834, allocations: 33.06 kB / 380.5 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004006/0.2838, allocations: 285 kB / 380.8 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.671e-05/0.2839, allocations: 22.62 kB / 380.8 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.099e-05/0.2839, allocations: 32.16 kB / 380.8 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007174/0.2846, allocations: 379.7 kB / 381.2 MB, free: 9.082 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.2847, allocations: 5.312 kB / 381.2 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.876e-05/0.2847, allocations: 13.73 kB / 381.2 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.2847, allocations: 6.75 kB / 381.2 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007702/0.2855, allocations: 402.8 kB / 381.6 MB, free: 9.074 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001931/0.2875, allocations: 1.093 MB / 382.7 MB, free: 8.633 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005883/0.2881, allocations: 303.3 kB / 383 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003568/0.2884, allocations: 196.2 kB / 383.2 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.043e-05/0.2885, allocations: 4.078 kB / 383.2 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.2885, allocations: 36.91 kB / 383.2 MB, free: 8.559 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.473e-06/0.2885, allocations: 0 / 383.2 MB, free: 8.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004193/0.2927, allocations: 2.039 MB / 385.3 MB, free: 7.812 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.601e-05/0.2927, allocations: 59.58 kB / 385.3 MB, free: 7.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.293, allocations: 243.2 kB / 385.6 MB, free: 7.637 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.293, allocations: 39.28 kB / 385.6 MB, free: 7.605 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.733e-05/0.2931, allocations: 154.8 kB / 385.8 MB, free: 7.492 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.999e-05/0.2932, allocations: 154.8 kB / 385.9 MB, free: 7.402 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.2934, allocations: 102.4 kB / 386 MB, free: 7.379 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.944e-05/0.2935, allocations: 341.4 kB / 386.3 MB, free: 7.062 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003878/0.2939, allocations: 207.5 kB / 386.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004255/0.2943, allocations: 285 kB / 386.8 MB, free: 6.914 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006155/0.2949, allocations: 379.2 kB / 387.2 MB, free: 6.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2949, allocations: 1.281 kB / 387.2 MB, free: 6.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001388/0.2963, allocations: 0.6931 MB / 387.9 MB, free: 6.465 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.2963, allocations: 6.406 kB / 387.9 MB, free: 6.465 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.2964, allocations: 3.219 kB / 387.9 MB, free: 6.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008425/0.2972, allocations: 0.4914 MB / 388.4 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002918/0.2975, allocations: 73.3 kB / 388.5 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009736/0.2985, allocations: 1.392 MB / 389.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004145/0.2989, allocations: 70.5 kB / 389.9 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.496e-05/0.299, allocations: 19.28 kB / 389.9 MB, free: 5.137 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.0001579/0.2991, allocations: 164.6 kB / 390.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.877e-05/0.2992, allocations: 26.72 kB / 390.1 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.2993, allocations: 52.19 kB / 390.2 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.2993, allocations: 4.344 kB / 390.2 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.2993, allocations: 1.484 kB / 390.2 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.2994, allocations: 1.969 kB / 390.2 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002654/0.302, allocations: 1.359 MB / 391.5 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.302, allocations: 1.375 kB / 391.5 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002606/0.3023, allocations: 63.16 kB / 391.6 MB, free: 4.246 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007051/0.303, allocations: 466.9 kB / 392.1 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.133e-05/0.3031, allocations: 18.44 kB / 392.1 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008763/0.304, allocations: 1.341 MB / 393.4 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.304, allocations: 2.406 kB / 393.4 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001579/0.3056, allocations: 0.9402 MB / 394.4 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001809/0.3057, allocations: 155.7 kB / 394.5 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.959e-05/0.3058, allocations: 23.23 kB / 394.5 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003253/0.3062, allocations: 35.48 kB / 394.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002511/0.3064, allocations: 87.66 kB / 394.7 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.765e-05/0.3065, allocations: 21.42 kB / 394.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001776/0.3067, allocations: 170.6 kB / 394.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3067, allocations: 0 / 394.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005369/0.3072, allocations: 110.5 kB / 395 MB, free: 2.211 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.001889/0.3091, allocations: 1.5 MB / 396.5 MB, free: 1.219 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.3102, allocations: 0.5217 MB / 397 MB, free: 1.047 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.3102, allocations: 0 / 397 MB, free: 1.047 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005399/0.3107, allocations: 296.3 kB / 397.3 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004837/0.3112, allocations: 52.95 kB / 397.3 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006577/0.3178, allocations: 4.13 MB / 401.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003825/0.3182, allocations: 0.78 MB / 402.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001523/0.3184, allocations: 31.66 kB / 402.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001573/0.3185, allocations: 93.27 kB / 402.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3185, allocations: 0 / 402.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1675/0.4861, allocations: 12.03 MB / 414.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.08, allocations: 4 kB / 414.4 MB, free: 6.738 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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