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.0009249/0.000925, allocations: 95.92 kB / 17.3 MB, free: 6.387 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.0009647/0.0009647, allocations: 178.4 kB / 18.21 MB, free: 5.551 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.313/1.313, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004944/0.0004944, allocations: 12 kB / 281.5 MB, free: 3.309 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0922/0.09271, allocations: 47.58 MB / 329.1 MB, free: 3.656 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00246/0.09521, allocations: 2.107 MB / 331.2 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008874/0.09612, allocations: 0.496 MB / 331.7 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.435e-05/0.09623, allocations: 4 kB / 331.7 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001795/0.09641, allocations: 39.69 kB / 331.7 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001683/0.09659, allocations: 75.45 kB / 331.8 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003908/0.09699, allocations: 159.8 kB / 331.9 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004115/0.09742, allocations: 467.1 kB / 332.4 MB, free: 304 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.09758, allocations: 57 kB / 332.4 MB, free: 252 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002002/0.09779, allocations: 191.3 kB / 332.6 MB, free: 60 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002787/0.09807, allocations: 219.3 kB / 332.8 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.483e-05/0.09813, allocations: 20 kB / 332.9 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001311/0.09827, allocations: 67.89 kB / 332.9 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001091/0.09838, allocations: 87.7 kB / 333 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.09854, allocations: 184.9 kB / 333.2 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004652/0.09902, allocations: 430.3 kB / 333.6 MB, free: 15.06 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.09903, allocations: 4 kB / 333.6 MB, free: 15.06 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.09904, allocations: 0 / 333.6 MB, free: 15.06 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.012e-06/0.09905, allocations: 4 kB / 333.6 MB, free: 15.05 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.001232/0.1003, allocations: 0.612 MB / 334.2 MB, free: 14.39 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.1003, allocations: 11.97 kB / 334.2 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.743e-05/0.1004, allocations: 70.72 kB / 334.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.97e-05/0.1005, allocations: 32.56 kB / 334.3 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002959/0.1008, allocations: 288.5 kB / 334.6 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.381e-05/0.1009, allocations: 20.94 kB / 334.7 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.929e-05/0.1009, allocations: 28.38 kB / 334.7 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007026/0.1016, allocations: 377.2 kB / 335 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.1017, allocations: 15.94 kB / 335.1 MB, free: 13.51 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.122e-05/0.1017, allocations: 8 kB / 335.1 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.1017, allocations: 8 kB / 335.1 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007334/0.1025, allocations: 405.9 kB / 335.5 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001829/0.1043, allocations: 1.127 MB / 336.6 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005055/0.1048, allocations: 307.4 kB / 336.9 MB, free: 11.58 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003534/0.1052, allocations: 205.8 kB / 337.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.522e-05/0.1052, allocations: 7.984 kB / 337.1 MB, free: 11.37 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.1053, allocations: 46.44 kB / 337.2 MB, free: 11.32 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.483e-06/0.1053, allocations: 0 / 337.2 MB, free: 11.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004386/0.1097, allocations: 2.111 MB / 339.3 MB, free: 9.07 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.1097, allocations: 59.41 kB / 339.3 MB, free: 9 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.11, allocations: 236.9 kB / 339.6 MB, free: 8.758 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.843e-05/0.11, allocations: 37.7 kB / 339.6 MB, free: 8.715 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.741e-05/0.1101, allocations: 152.8 kB / 339.7 MB, free: 8.559 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.1102, allocations: 157.9 kB / 339.9 MB, free: 8.402 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.213e-05/0.1103, allocations: 45.69 kB / 339.9 MB, free: 8.352 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.1104, allocations: 346.8 kB / 340.3 MB, free: 8.004 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003744/0.1108, allocations: 209 kB / 340.5 MB, free: 7.801 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004245/0.1113, allocations: 284.8 kB / 340.8 MB, free: 7.496 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006146/0.1119, allocations: 377.7 kB / 341.1 MB, free: 7.102 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1119, allocations: 8 kB / 341.1 MB, free: 7.094 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001389/0.1133, allocations: 0.6925 MB / 341.8 MB, free: 6.387 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.1133, allocations: 8.031 kB / 341.8 MB, free: 6.379 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.1133, allocations: 4 kB / 341.8 MB, free: 6.375 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008285/0.1142, allocations: 497.4 kB / 342.3 MB, free: 5.883 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.1144, allocations: 75.83 kB / 342.4 MB, free: 5.809 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.1156, allocations: 1.394 MB / 343.8 MB, free: 4.363 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004345/0.1161, allocations: 92.02 kB / 343.9 MB, free: 4.273 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.197e-05/0.1161, allocations: 20.14 kB / 343.9 MB, free: 4.254 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.0002066/0.1164, allocations: 161.7 kB / 344.1 MB, free: 4.086 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.118e-05/0.1164, allocations: 27.72 kB / 344.1 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001243/0.1166, allocations: 55.23 kB / 344.1 MB, free: 4.008 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.1166, allocations: 8 kB / 344.2 MB, free: 4 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.1166, allocations: 0 / 344.2 MB, free: 4 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.1166, allocations: 3.984 kB / 344.2 MB, free: 3.996 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002649/0.1193, allocations: 1.392 MB / 345.5 MB, free: 2.527 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.1193, allocations: 4.062 kB / 345.6 MB, free: 2.523 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002579/0.1196, allocations: 64.02 kB / 345.6 MB, free: 2.461 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006629/0.1202, allocations: 465.4 kB / 346.1 MB, free: 2 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.562e-05/0.1203, allocations: 15.98 kB / 346.1 MB, free: 1.984 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/0.1213, allocations: 1.351 MB / 347.4 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1214, allocations: 0 / 347.4 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00168/0.123, allocations: 0.9509 MB / 348.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.1232, allocations: 152.7 kB / 348.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.972e-05/0.1233, allocations: 19.94 kB / 348.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003028/0.1236, allocations: 51.95 kB / 348.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001981/0.1238, allocations: 79.86 kB / 348.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.739e-05/0.1239, allocations: 27.97 kB / 348.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000147/0.124, allocations: 172.5 kB / 348.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.124, allocations: 0 / 348.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004457/0.1245, allocations: 100 kB / 349 MB, free: 14.98 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.00208/0.1266, allocations: 1.519 MB / 350.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.1276, allocations: 0.5143 MB / 351 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.1276, allocations: 8.062 kB / 351 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005777/0.1282, allocations: 291.6 kB / 351.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005185/0.1287, allocations: 44.42 kB / 351.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006808/0.1356, allocations: 4.375 MB / 355.7 MB, free: 8.031 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/0.1359, allocations: 0.78 MB / 356.5 MB, free: 7.223 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001567/0.1361, allocations: 34.97 kB / 356.5 MB, free: 7.188 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.1363, allocations: 95.28 kB / 356.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of SimCode: time 1.142e-06/0.1363, allocations: 0 / 356.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02402/0.1603, allocations: 10.75 MB / 367.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001936/0.1605, allocations: 233.2 kB / 367.6 MB, free: 12.08 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/2.118, allocations: 4 kB / 367.6 MB, free: 12.08 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