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.001074/0.001074, allocations: 103.8 kB / 16.92 MB, free: 6.145 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.001091/0.001091, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.288/1.288, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 47.78 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0846/0.08592, allocations: 49.45 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003851/0.0898, allocations: 2.419 MB / 352.6 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.09102, allocations: 0.4952 MB / 353.1 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002041/0.09125, allocations: 4 kB / 353.1 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002153/0.0915, allocations: 51.52 kB / 353.1 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001819/0.09169, allocations: 83.27 kB / 353.2 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005404/0.09224, allocations: 191.7 kB / 353.4 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004809/0.09273, allocations: 491.1 kB / 353.9 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.09292, allocations: 72.58 kB / 354 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/0.09315, allocations: 211.4 kB / 354.2 MB, free: 292 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002727/0.09343, allocations: 235.2 kB / 354.4 MB, free: 56 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.624e-05/0.09351, allocations: 40 kB / 354.4 MB, free: 16 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001727/0.09369, allocations: 88 kB / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.0938, allocations: 95.59 kB / 354.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.094, allocations: 183.2 kB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004726/0.09448, allocations: 462.8 kB / 355.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.0945, allocations: 0 / 355.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.09451, allocations: 0 / 355.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.09452, allocations: 0 / 355.2 MB, free: 15.2 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.001197/0.09572, allocations: 0.6588 MB / 355.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.09576, allocations: 8.031 kB / 355.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.381e-05/0.09585, allocations: 70.72 kB / 356 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.231e-05/0.09594, allocations: 32.56 kB / 356 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002957/0.09624, allocations: 280.6 kB / 356.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.063e-05/0.09629, allocations: 24.88 kB / 356.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.231e-05/0.09635, allocations: 32.28 kB / 356.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006762/0.09704, allocations: 381.2 kB / 356.7 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.09707, allocations: 3.938 kB / 356.7 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.128e-05/0.09712, allocations: 19.94 kB / 356.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.09713, allocations: 11.98 kB / 356.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000727/0.09787, allocations: 401.9 kB / 357.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001944/0.09982, allocations: 1.112 MB / 358.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005524/0.1004, allocations: 291.5 kB / 358.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003768/0.1008, allocations: 197.4 kB / 358.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.168e-05/0.1008, allocations: 11.92 kB / 358.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.1009, allocations: 34.56 kB / 358.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 2.745e-06/0.1009, allocations: 0 / 358.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004714/0.1056, allocations: 2.025 MB / 360.8 MB, free: 9.312 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.1057, allocations: 55.41 kB / 360.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.1059, allocations: 244.8 kB / 361.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.984e-05/0.106, allocations: 37.7 kB / 361.1 MB, free: 8.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.1061, allocations: 148.8 kB / 361.3 MB, free: 8.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.1063, allocations: 157.9 kB / 361.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001739/0.1064, allocations: 98.17 kB / 361.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002038/0.1067, allocations: 342.7 kB / 361.9 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003962/0.1071, allocations: 209 kB / 362.1 MB, free: 7.992 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000483/0.1075, allocations: 292.8 kB / 362.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006522/0.1082, allocations: 365.7 kB / 362.7 MB, free: 7.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1082, allocations: 4 kB / 362.7 MB, free: 7.301 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001384/0.1096, allocations: 0.6923 MB / 363.4 MB, free: 6.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.1097, allocations: 8 kB / 363.4 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1097, allocations: 4.219 kB / 363.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009409/0.1106, allocations: 0.4974 MB / 363.9 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.1109, allocations: 75.84 kB / 364 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001277/0.1122, allocations: 1.382 MB / 365.4 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004338/0.1127, allocations: 72.06 kB / 365.4 MB, free: 4.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.606e-05/0.1127, allocations: 20 kB / 365.5 MB, free: 4.484 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.0002171/0.1129, allocations: 165.6 kB / 365.6 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.612e-05/0.113, allocations: 31.62 kB / 365.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.1132, allocations: 55.3 kB / 365.7 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.1132, allocations: 4 kB / 365.7 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.1132, allocations: 0 / 365.7 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1132, allocations: 0 / 365.7 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002674/0.1159, allocations: 1.349 MB / 367.1 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.1159, allocations: 0 / 367.1 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002611/0.1162, allocations: 67.84 kB / 367.1 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007015/0.1169, allocations: 465.5 kB / 367.6 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.007e-05/0.1169, allocations: 15.98 kB / 367.6 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/0.118, allocations: 1.339 MB / 368.9 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.118, allocations: 0 / 368.9 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1608/0.2789, allocations: 0.942 MB / 369.9 MB, free: 26.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002604/0.2792, allocations: 150.1 kB / 370 MB, free: 25.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.145e-05/0.2793, allocations: 21.86 kB / 370 MB, free: 25.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.2796, allocations: 37.22 kB / 370.1 MB, free: 25.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/0.2798, allocations: 83.73 kB / 370.2 MB, free: 25.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.722e-05/0.2799, allocations: 23.97 kB / 370.2 MB, free: 25.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000156/0.2801, allocations: 168.8 kB / 370.4 MB, free: 25.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2801, allocations: 0 / 370.4 MB, free: 25.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004798/0.2805, allocations: 104.9 kB / 370.5 MB, free: 25.85 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.00201/0.2826, allocations: 1.521 MB / 372 MB, free: 25.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001062/0.2836, allocations: 0.5361 MB / 372.5 MB, free: 25.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2837, allocations: 0 / 372.5 MB, free: 25.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006055/0.2843, allocations: 293 kB / 372.8 MB, free: 25.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004998/0.2848, allocations: 55.52 kB / 372.9 MB, free: 25.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005984/0.2908, allocations: 4.123 MB / 377 MB, free: 22.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.291, allocations: 0.7767 MB / 377.8 MB, free: 21.94 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001478/0.2912, allocations: 33.61 kB / 377.8 MB, free: 21.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.2913, allocations: 93.52 kB / 377.9 MB, free: 21.87 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2913, allocations: 0 / 377.9 MB, free: 21.87 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1708/0.4622, allocations: 11.53 MB / 389.4 MB, free: 17.81 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.27, allocations: 4.141 kB / 389.4 MB, free: 17.81 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