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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 103 kB / 16.51 MB, free: 6.645 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.001586/0.001586, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 241.1 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 41.94 kB / 300.1 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08793/0.08903, allocations: 49.46 MB / 349.5 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004211/0.09329, allocations: 2.48 MB / 352 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.09453, allocations: 0.4952 MB / 352.5 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002158/0.09477, allocations: 4 kB / 352.5 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002371/0.09501, allocations: 31.77 kB / 352.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002133/0.09527, allocations: 75.47 kB / 352.6 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006002/0.09588, allocations: 171.7 kB / 352.8 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005291/0.09642, allocations: 459.1 kB / 353.2 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.09661, allocations: 59.95 kB / 353.3 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002886/0.09691, allocations: 203.3 kB / 353.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/0.09723, allocations: 219.2 kB / 353.7 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.144e-05/0.09731, allocations: 24 kB / 353.7 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.09749, allocations: 63.95 kB / 353.8 MB, free: 472 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.09761, allocations: 83.7 kB / 353.9 MB, free: 388 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001721/0.09779, allocations: 171.1 kB / 354 MB, free: 216 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004701/0.09827, allocations: 438.8 kB / 354.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.09829, allocations: 4 kB / 354.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.09829, allocations: 0 / 354.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.09831, allocations: 0 / 354.5 MB, free: 15.78 MB / 302.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.001384/0.0997, allocations: 0.6627 MB / 355.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.09975, allocations: 8.031 kB / 355.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.924e-05/0.09985, allocations: 62.73 kB / 355.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.844e-05/0.09996, allocations: 32.56 kB / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003204/0.1003, allocations: 284.6 kB / 355.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/0.1003, allocations: 20.94 kB / 355.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.619e-05/0.1004, allocations: 36.28 kB / 355.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007075/0.1011, allocations: 377.2 kB / 355.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.1012, allocations: 7.938 kB / 355.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.815e-05/0.1012, allocations: 11.94 kB / 355.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.347e-05/0.1012, allocations: 8 kB / 355.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008376/0.1021, allocations: 406 kB / 356.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00195/0.104, allocations: 1.119 MB / 357.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004992/0.1046, allocations: 299.5 kB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003376/0.1049, allocations: 201.4 kB / 357.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.061e-05/0.105, allocations: 7.938 kB / 358 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.105, allocations: 34.56 kB / 358 MB, free: 12.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 1.723e-06/0.105, allocations: 0 / 358 MB, free: 12.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.00453/0.1095, allocations: 2.021 MB / 360 MB, free: 9.883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.1096, allocations: 63.41 kB / 360.1 MB, free: 9.809 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002257/0.1098, allocations: 236.9 kB / 360.3 MB, free: 9.562 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.851e-05/0.1099, allocations: 41.69 kB / 360.3 MB, free: 9.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.422e-05/0.11, allocations: 152.8 kB / 360.5 MB, free: 9.363 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.1101, allocations: 150 kB / 360.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/0.1103, allocations: 98.14 kB / 360.7 MB, free: 9.113 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.1104, allocations: 342.8 kB / 361.1 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004645/0.1109, allocations: 209 kB / 361.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004242/0.1113, allocations: 288.8 kB / 361.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006049/0.1119, allocations: 377.7 kB / 361.9 MB, free: 7.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.1119, allocations: 4 kB / 361.9 MB, free: 7.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001494/0.1134, allocations: 0.6962 MB / 362.6 MB, free: 7.156 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.1135, allocations: 4 kB / 362.6 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.1135, allocations: 4 kB / 362.6 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000869/0.1144, allocations: 493.5 kB / 363.1 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002713/0.1146, allocations: 71.91 kB / 363.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001189/0.1158, allocations: 1.39 MB / 364.6 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004777/0.1163, allocations: 67.91 kB / 364.6 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.209e-05/0.1164, allocations: 16 kB / 364.7 MB, free: 5.066 MB / 302.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.0001953/0.1166, allocations: 169.6 kB / 364.8 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.64e-05/0.1167, allocations: 35.61 kB / 364.9 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.1168, allocations: 43.31 kB / 364.9 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.1168, allocations: 7.984 kB / 364.9 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.1168, allocations: 0 / 364.9 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.1168, allocations: 4.047 kB / 364.9 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002651/0.1195, allocations: 1.353 MB / 366.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.1195, allocations: 4 kB / 366.3 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002636/0.1197, allocations: 59.84 kB / 366.3 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007922/0.1205, allocations: 461.3 kB / 366.8 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.511e-05/0.1206, allocations: 27.91 kB / 366.8 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/0.1217, allocations: 1.331 MB / 368.1 MB, free: 1.441 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/0.1217, allocations: 11.95 kB / 368.1 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.1235, allocations: 0.9352 MB / 369.1 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001706/0.1237, allocations: 148.7 kB / 369.2 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.997e-05/0.1238, allocations: 23.94 kB / 369.3 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002912/0.1241, allocations: 39.95 kB / 369.3 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.1243, allocations: 83.84 kB / 369.4 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.89e-05/0.1244, allocations: 23.92 kB / 369.4 MB, free: 124 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.1447/0.269, allocations: 163 kB / 369.6 MB, free: 26.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.269, allocations: 0 / 369.6 MB, free: 26.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006364/0.2697, allocations: 106.2 kB / 369.7 MB, free: 26.25 MB / 302.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.002182/0.2719, allocations: 1.517 MB / 371.2 MB, free: 25.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.273, allocations: 0.5106 MB / 371.7 MB, free: 25.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.2731, allocations: 1.75 kB / 371.7 MB, free: 25.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005692/0.2736, allocations: 294.4 kB / 372 MB, free: 25.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005223/0.2742, allocations: 56.8 kB / 372 MB, free: 25.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006281/0.2805, allocations: 4.24 MB / 376.3 MB, free: 23.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002/0.2807, allocations: 0.7789 MB / 377 MB, free: 22.35 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001488/0.2809, allocations: 30.95 kB / 377.1 MB, free: 22.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.281, allocations: 91.72 kB / 377.2 MB, free: 22.28 MB / 302.1 MB Notification: Performance of SimCode: time 2.285e-06/0.2811, allocations: 0 / 377.2 MB, free: 22.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.557/0.8381, allocations: 10.9 MB / 388.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/0.8384, allocations: 231.5 kB / 388.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.041/2.879, allocations: 0 / 388.3 MB, free: 18.48 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/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) Reference file matches