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.001197/0.001197, allocations: 108.1 kB / 17.15 MB, free: 6.305 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.001343/0.001343, allocations: 198 kB / 18.07 MB, free: 5.41 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.272/1.272, allocations: 205.1 MB / 223.9 MB, free: 12.38 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.00111/0.00111, allocations: 47.92 kB / 280.1 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08304/0.08417, allocations: 46.63 MB / 326.7 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003255/0.08746, allocations: 2.476 MB / 329.2 MB, free: 2.293 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009807/0.08845, allocations: 0.5037 MB / 329.7 MB, free: 1.785 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.522e-05/0.08856, allocations: 11.94 kB / 329.7 MB, free: 1.773 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.08874, allocations: 31.77 kB / 329.7 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.08888, allocations: 67.47 kB / 329.8 MB, free: 1.676 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003368/0.08922, allocations: 171.7 kB / 329.9 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004065/0.08964, allocations: 463.1 kB / 330.4 MB, free: 1.055 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.08978, allocations: 57 kB / 330.5 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001866/0.08997, allocations: 195.3 kB / 330.6 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.09022, allocations: 223.2 kB / 330.9 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.156e-05/0.09029, allocations: 24 kB / 330.9 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001398/0.09043, allocations: 67.95 kB / 330.9 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.09055, allocations: 83.7 kB / 331 MB, free: 432 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000155/0.09071, allocations: 159.2 kB / 331.2 MB, free: 272 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003821/0.0911, allocations: 438.5 kB / 331.6 MB, free: 15.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.09111, allocations: 0 / 331.6 MB, free: 15.84 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.09112, allocations: 3.984 kB / 331.6 MB, free: 15.83 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.09113, allocations: 0 / 331.6 MB, free: 15.83 MB / 286.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.00115/0.09228, allocations: 0.6626 MB / 332.3 MB, free: 15.12 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.09233, allocations: 8.031 kB / 332.3 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.548e-05/0.09241, allocations: 66.73 kB / 332.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.013e-05/0.0925, allocations: 36.47 kB / 332.4 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/0.09285, allocations: 288.6 kB / 332.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.09289, allocations: 20.94 kB / 332.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.104e-05/0.09295, allocations: 28.38 kB / 332.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007286/0.09369, allocations: 381.2 kB / 333.1 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.262e-05/0.0938, allocations: 7.844 kB / 333.1 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.959e-05/0.09385, allocations: 16 kB / 333.1 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.09386, allocations: 8 kB / 333.1 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007183/0.09459, allocations: 398 kB / 333.5 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.09645, allocations: 1.104 MB / 334.6 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004905/0.09695, allocations: 307.4 kB / 334.9 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000331/0.09729, allocations: 197.4 kB / 335.1 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.024e-05/0.09735, allocations: 15.94 kB / 335.1 MB, free: 12.13 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.09738, allocations: 34.56 kB / 335.2 MB, free: 12.09 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.532e-06/0.09738, allocations: 0 / 335.2 MB, free: 12.09 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004429/0.1018, allocations: 2.025 MB / 337.2 MB, free: 9.926 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.1019, allocations: 59.34 kB / 337.2 MB, free: 9.855 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002206/0.1021, allocations: 237 kB / 337.5 MB, free: 9.613 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.822e-05/0.1022, allocations: 45.69 kB / 337.5 MB, free: 9.562 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001698/0.1023, allocations: 152.7 kB / 337.7 MB, free: 9.406 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.1025, allocations: 150 kB / 337.8 MB, free: 9.258 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.1026, allocations: 98.14 kB / 337.9 MB, free: 9.156 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1028, allocations: 338.8 kB / 338.2 MB, free: 8.816 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003769/0.1032, allocations: 209 kB / 338.4 MB, free: 8.613 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004102/0.1036, allocations: 288.8 kB / 338.7 MB, free: 8.305 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006966/0.1043, allocations: 381.7 kB / 339.1 MB, free: 7.906 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1043, allocations: 0 / 339.1 MB, free: 7.906 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001385/0.1057, allocations: 0.6963 MB / 339.8 MB, free: 7.195 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.1057, allocations: 8 kB / 339.8 MB, free: 7.188 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.1057, allocations: 0 / 339.8 MB, free: 7.188 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/0.1068, allocations: 497.5 kB / 340.3 MB, free: 6.695 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002676/0.107, allocations: 71.91 kB / 340.4 MB, free: 6.625 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/0.1083, allocations: 1.386 MB / 341.7 MB, free: 5.188 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003785/0.1087, allocations: 67.94 kB / 341.8 MB, free: 5.121 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.154e-05/0.1088, allocations: 20 kB / 341.8 MB, free: 5.102 MB / 286.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.000191/0.109, allocations: 177.2 kB / 342 MB, free: 4.918 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.884e-05/0.1091, allocations: 31.62 kB / 342 MB, free: 4.887 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.1092, allocations: 47.31 kB / 342.1 MB, free: 4.844 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.1092, allocations: 4 kB / 342.1 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1092, allocations: 3.938 kB / 342.1 MB, free: 4.836 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.301e-06/0.1092, allocations: 3.984 kB / 342.1 MB, free: 4.832 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002585/0.1118, allocations: 1.349 MB / 343.4 MB, free: 3.406 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.1118, allocations: 0 / 343.4 MB, free: 3.406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002522/0.1121, allocations: 76 kB / 343.5 MB, free: 3.332 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006735/0.1128, allocations: 461.4 kB / 344 MB, free: 2.875 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.104e-05/0.1128, allocations: 19.97 kB / 344 MB, free: 2.855 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.1139, allocations: 1.335 MB / 345.3 MB, free: 1.469 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.114, allocations: 4.125 kB / 345.3 MB, free: 1.465 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.1156, allocations: 0.947 MB / 346.3 MB, free: 492 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002906/0.1159, allocations: 156.7 kB / 346.4 MB, free: 316 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.425e-05/0.116, allocations: 15.94 kB / 346.4 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002806/0.1163, allocations: 39.95 kB / 346.5 MB, free: 260 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/0.1165, allocations: 87.78 kB / 346.6 MB, free: 172 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.613e-05/0.1165, allocations: 19.98 kB / 346.6 MB, free: 152 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001478/0.1167, allocations: 176.5 kB / 346.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1167, allocations: 0 / 346.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004072/0.1171, allocations: 100 kB / 346.9 MB, free: 15.88 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.002101/0.1192, allocations: 1.515 MB / 348.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.1203, allocations: 0.5028 MB / 348.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1203, allocations: 4 kB / 348.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005521/0.1208, allocations: 291.6 kB / 349.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005448/0.1214, allocations: 44.41 kB / 349.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006606/0.128, allocations: 4.258 MB / 353.5 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.1283, allocations: 0.78 MB / 354.2 MB, free: 8.254 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002229/0.1285, allocations: 34.95 kB / 354.3 MB, free: 8.219 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.1287, allocations: 83.41 kB / 354.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1287, allocations: 4 kB / 354.4 MB, free: 8.133 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1465/0.2752, allocations: 10.91 MB / 365.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002224/0.2754, allocations: 225.8 kB / 365.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.224/2.5, allocations: 0 / 365.5 MB, free: 12.93 MB / 318.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","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches