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.0008601/0.0008602, allocations: 91.25 kB / 16.65 MB, free: 6.59 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.0009639/0.0009641, allocations: 184.5 kB / 17.56 MB, free: 6.203 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.391/1.391, allocations: 223.3 MB / 241.6 MB, free: 112 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002345/0.0002345, allocations: 4 kB / 301.5 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09388/0.09413, allocations: 50.42 MB / 351.9 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002941/0.09713, allocations: 2.121 MB / 354.1 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001218/0.09838, allocations: 499.2 kB / 354.6 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001803/0.09858, allocations: 4 kB / 354.6 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001909/0.09878, allocations: 31.77 kB / 354.6 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001956/0.09899, allocations: 75.45 kB / 354.7 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004505/0.09945, allocations: 163.8 kB / 354.8 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004272/0.09989, allocations: 463.1 kB / 355.3 MB, free: 248 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002527/0.1002, allocations: 64.56 kB / 355.3 MB, free: 180 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002117/0.1004, allocations: 191.3 kB / 355.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002735/0.1007, allocations: 227.2 kB / 355.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.899e-05/0.1007, allocations: 20 kB / 355.8 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.1009, allocations: 59.97 kB / 355.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.882e-05/0.101, allocations: 83.7 kB / 355.9 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.1011, allocations: 188.8 kB / 356.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003971/0.1015, allocations: 438.7 kB / 356.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1016, allocations: 0 / 356.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1016, allocations: 0 / 356.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1016, allocations: 0 / 356.5 MB, free: 14.98 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.001073/0.1027, allocations: 0.62 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.1027, allocations: 8.031 kB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.266e-05/0.1028, allocations: 58.73 kB / 357.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.105e-05/0.1029, allocations: 40.55 kB / 357.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002885/0.1032, allocations: 284.5 kB / 357.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/0.1032, allocations: 20.94 kB / 357.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.517e-05/0.1033, allocations: 28.38 kB / 357.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007563/0.104, allocations: 385.2 kB / 357.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.1041, allocations: 3.938 kB / 357.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.879e-05/0.1041, allocations: 12 kB / 358 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.1041, allocations: 8 kB / 358 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007254/0.1048, allocations: 410 kB / 358.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.1067, allocations: 1.131 MB / 359.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004898/0.1072, allocations: 304.4 kB / 359.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003475/0.1075, allocations: 209.8 kB / 360 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.335e-05/0.1076, allocations: 7.984 kB / 360 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.455e-05/0.1077, allocations: 38.5 kB / 360 MB, free: 11.26 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 4.909e-06/0.1077, allocations: 0 / 360 MB, free: 11.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004613/0.1123, allocations: 2.111 MB / 362.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.1124, allocations: 55.41 kB / 362.2 MB, free: 8.945 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002275/0.1126, allocations: 237 kB / 362.4 MB, free: 8.699 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.884e-05/0.1127, allocations: 49.62 kB / 362.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.604e-05/0.1128, allocations: 152.8 kB / 362.6 MB, free: 8.492 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/0.1129, allocations: 153.9 kB / 362.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.996e-05/0.113, allocations: 49.69 kB / 362.8 MB, free: 8.285 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.1131, allocations: 342.8 kB / 363.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003893/0.1135, allocations: 205 kB / 363.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005211/0.1141, allocations: 296.8 kB / 363.7 MB, free: 7.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006486/0.1147, allocations: 381.7 kB / 364 MB, free: 7.031 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.1147, allocations: 0 / 364 MB, free: 7.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001492/0.1162, allocations: 0.7002 MB / 364.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.1163, allocations: 11.98 kB / 364.7 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.1163, allocations: 0 / 364.7 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008219/0.1171, allocations: 497.5 kB / 365.2 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002714/0.1174, allocations: 67.91 kB / 365.3 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00123/0.1186, allocations: 1.397 MB / 366.7 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005666/0.1192, allocations: 88.05 kB / 366.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.185e-05/0.1193, allocations: 23.98 kB / 366.8 MB, free: 4.191 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.0001985/0.1195, allocations: 169.5 kB / 367 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.96e-05/0.1196, allocations: 27.62 kB / 367 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000116/0.1197, allocations: 51.3 kB / 367.1 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.1197, allocations: 4 kB / 367.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.1197, allocations: 0 / 367.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1197, allocations: 3.984 kB / 367.1 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003004/0.1227, allocations: 1.384 MB / 368.4 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1227, allocations: 4 kB / 368.4 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002603/0.123, allocations: 63.84 kB / 368.5 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006828/0.1237, allocations: 465.5 kB / 369 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.922e-05/0.1237, allocations: 19.97 kB / 369 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001161/0.1249, allocations: 1.335 MB / 370.3 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1249, allocations: 3.938 kB / 370.3 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1565/0.2814, allocations: 0.9334 MB / 371.3 MB, free: 25.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002139/0.2816, allocations: 155.1 kB / 371.4 MB, free: 25.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.658e-05/0.2817, allocations: 23.69 kB / 371.4 MB, free: 25.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003186/0.282, allocations: 51.53 kB / 371.5 MB, free: 25.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.2822, allocations: 86.33 kB / 371.6 MB, free: 25.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.763e-05/0.2823, allocations: 26.55 kB / 371.6 MB, free: 25.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001399/0.2824, allocations: 169.6 kB / 371.8 MB, free: 24.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2824, allocations: 0 / 371.8 MB, free: 24.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004462/0.2829, allocations: 111.3 kB / 371.9 MB, free: 24.93 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.002358/0.2852, allocations: 1.519 MB / 373.4 MB, free: 24.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.2864, allocations: 0.5237 MB / 373.9 MB, free: 24.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/0.2864, allocations: 0 / 373.9 MB, free: 24.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006894/0.2871, allocations: 304.4 kB / 374.2 MB, free: 24.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005155/0.2877, allocations: 50.03 kB / 374.3 MB, free: 24.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006308/0.294, allocations: 4.355 MB / 378.6 MB, free: 21.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002302/0.2942, allocations: 0.7775 MB / 379.4 MB, free: 21.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001334/0.2944, allocations: 36.06 kB / 379.4 MB, free: 21.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.2945, allocations: 90.97 kB / 379.5 MB, free: 21.04 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2945, allocations: 0 / 379.5 MB, free: 21.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2851/0.5797, allocations: 10.75 MB / 390.3 MB, free: 17.35 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001312/0.5798, allocations: 233.6 kB / 390.5 MB, free: 17.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.149/2.728, allocations: 3.938 kB / 390.5 MB, free: 17.09 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