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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001022/0.001021, allocations: 181.2 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008491/0.0008491, allocations: 97.83 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002765, allocations: 8 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2899, allocations: 50.41 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1076/0.3976, allocations: 78.87 MB / 480.5 MB, free: 1.582 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.3979, allocations: 73.98 kB / 480.5 MB, free: 1.512 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01615/0.4141, allocations: 5.652 MB / 486.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.4141, allocations: 0 / 486.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.86e-05/0.4141, allocations: 8 kB / 486.2 MB, free: 11.83 MB / 362.7 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.001198/0.4153, allocations: 0.6275 MB / 486.8 MB, free: 11.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.4154, allocations: 8.031 kB / 486.8 MB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.013e-05/0.4155, allocations: 62.53 kB / 486.9 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.656e-05/0.4156, allocations: 35.53 kB / 486.9 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.416, allocations: 275.4 kB / 487.2 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.416, allocations: 20.56 kB / 487.2 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.416e-05/0.4161, allocations: 24 kB / 487.2 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006886/0.4168, allocations: 364.7 kB / 487.6 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.4168, allocations: 0 / 487.6 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.35e-05/0.4169, allocations: 15.95 kB / 487.6 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.4169, allocations: 8 kB / 487.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006973/0.4176, allocations: 365.9 kB / 488 MB, free: 9.949 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.4196, allocations: 1.127 MB / 489.1 MB, free: 8.742 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005143/0.4202, allocations: 300.8 kB / 489.4 MB, free: 8.434 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.439e-05/0.4202, allocations: 4 kB / 489.4 MB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.4203, allocations: 38.56 kB / 489.4 MB, free: 8.383 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.723e-06/0.4203, allocations: 4 kB / 489.4 MB, free: 8.379 MB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.004424/0.4247, allocations: 2.012 MB / 491.4 MB, free: 6.234 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.4248, allocations: 63.8 kB / 491.5 MB, free: 6.16 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002314/0.425, allocations: 192.2 kB / 491.7 MB, free: 5.965 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.715e-05/0.4251, allocations: 37.7 kB / 491.7 MB, free: 5.922 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.4252, allocations: 148.8 kB / 491.9 MB, free: 5.773 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.4254, allocations: 157.9 kB / 492 MB, free: 5.617 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-05/0.4254, allocations: 8 kB / 492 MB, free: 5.609 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.4256, allocations: 338.8 kB / 492.4 MB, free: 5.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003732/0.426, allocations: 189 kB / 492.6 MB, free: 5.086 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004557/0.4264, allocations: 268.7 kB / 492.8 MB, free: 4.797 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000318/0.4268, allocations: 149.9 kB / 493 MB, free: 4.652 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.4268, allocations: 0 / 493 MB, free: 4.652 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001495/0.4283, allocations: 0.6456 MB / 493.6 MB, free: 3.992 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.4283, allocations: 11.92 kB / 493.6 MB, free: 3.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.4283, allocations: 7.953 kB / 493.6 MB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008215/0.4292, allocations: 397.5 kB / 494 MB, free: 3.578 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002649/0.4294, allocations: 67.91 kB / 494.1 MB, free: 3.512 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/0.4308, allocations: 1.316 MB / 495.4 MB, free: 2.145 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004317/0.4313, allocations: 95.94 kB / 495.5 MB, free: 2.051 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.983e-05/0.4314, allocations: 23.98 kB / 495.5 MB, free: 2.027 MB / 362.7 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 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002314/0.4316, allocations: 162.8 kB / 495.7 MB, free: 1.859 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.621e-05/0.4317, allocations: 27.62 kB / 495.7 MB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001542/0.4332, allocations: 0.6444 MB / 496.3 MB, free: 1.168 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.4332, allocations: 7.953 kB / 496.4 MB, free: 1.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.4333, allocations: 4 kB / 496.4 MB, free: 1.156 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.4333, allocations: 3.984 kB / 496.4 MB, free: 1.152 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002767/0.436, allocations: 1.302 MB / 497.7 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.4361, allocations: 4 kB / 497.7 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002877/0.4364, allocations: 68.12 kB / 497.7 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006126/0.437, allocations: 353.4 kB / 498.1 MB, free: 15.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-05/0.437, allocations: 23.97 kB / 498.1 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001109/0.4382, allocations: 1.265 MB / 499.4 MB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.4382, allocations: 0 / 499.4 MB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001739/0.4399, allocations: 0.9244 MB / 0.4886 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001877/0.4401, allocations: 156.7 kB / 0.4887 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.249e-05/0.4402, allocations: 19.98 kB / 0.4887 GB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002868/0.4405, allocations: 47.97 kB / 0.4888 GB, free: 12.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.4407, allocations: 103.8 kB / 0.4889 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-05/0.4408, allocations: 31.88 kB / 0.4889 GB, free: 12.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000157/0.4409, allocations: 164.4 kB / 0.4891 GB, free: 12.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4409, allocations: 0 / 0.4891 GB, free: 12.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004609/0.4414, allocations: 104 kB / 0.4892 GB, free: 12.38 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002344/0.4438, allocations: 1.871 MB / 0.491 GB, free: 10.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.4448, allocations: 0.5172 MB / 0.4915 GB, free: 9.926 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4448, allocations: 0 / 0.4915 GB, free: 9.926 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005439/0.4454, allocations: 276.3 kB / 0.4918 GB, free: 9.656 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003611/0.4458, allocations: 52.58 kB / 0.4918 GB, free: 9.605 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004987/0.4507, allocations: 3.603 MB / 0.4953 GB, free: 5.906 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004181/0.4512, allocations: 0.7842 MB / 0.4961 GB, free: 5.094 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001347/0.4513, allocations: 26.97 kB / 0.4961 GB, free: 5.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.4515, allocations: 91.39 kB / 0.4962 GB, free: 4.98 MB / 378.7 MB Notification: Performance of SimCode: time 6.82e-07/0.4515, allocations: 0 / 0.4962 GB, free: 4.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2484/0.6999, allocations: 9.986 MB / 0.506 GB, free: 102.2 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002511/0.7002, allocations: 207 kB / 0.5062 GB, free: 102 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.176/2.876, allocations: 7.875 kB / 0.5062 GB, free: 102 MB / 378.7 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat