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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00112/0.00112, allocations: 180.3 kB / 8.48 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.189/1.189, allocations: 205.2 MB / 214.1 MB, free: 5.152 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008382/0.0008382, allocations: 89.91 kB / 262.1 MB, free: 5.195 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1741/0.175, allocations: 52.96 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06616/0.2411, allocations: 47.57 MB / 362.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2231/0.4643, allocations: 76.68 MB / 439.3 MB, free: 10.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001757/0.4645, allocations: 69.84 kB / 439.4 MB, free: 10.89 MB / 314.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.01746/0.482, allocations: 5.914 MB / 445.3 MB, free: 10.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.4821, allocations: 7.688 kB / 445.3 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/0.4822, allocations: 38.62 kB / 445.3 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003996/0.4826, allocations: 272 kB / 445.6 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.4827, allocations: 14.66 kB / 445.6 MB, free: 9.816 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.143e-05/0.4827, allocations: 16.12 kB / 445.6 MB, free: 9.816 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006301/0.4834, allocations: 328.8 kB / 446 MB, free: 9.816 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005183/0.4839, allocations: 316.2 kB / 446.3 MB, free: 9.727 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.4839, allocations: 0 / 446.3 MB, free: 9.727 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.138e-05/0.484, allocations: 3.984 kB / 446.3 MB, free: 9.723 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.484, allocations: 11.66 kB / 446.3 MB, free: 9.719 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.4859, allocations: 1.067 MB / 447.3 MB, free: 9.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.4863, allocations: 239.5 kB / 447.6 MB, free: 9.051 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002226/0.4865, allocations: 164.1 kB / 447.7 MB, free: 9.039 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.469e-05/0.4866, allocations: 15.62 kB / 447.8 MB, free: 9.031 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.416e-05/0.4866, allocations: 37.61 kB / 447.8 MB, free: 8.988 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 2.134e-06/0.4866, allocations: 0 / 447.8 MB, free: 8.988 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.002911/0.4895, allocations: 1.344 MB / 449.1 MB, free: 8.309 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.995e-05/0.4896, allocations: 55.72 kB / 449.2 MB, free: 8.246 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002012/0.4898, allocations: 178.8 kB / 449.4 MB, free: 8.133 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.01e-05/0.4899, allocations: 32.67 kB / 449.4 MB, free: 8.102 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.352e-05/0.4899, allocations: 135.8 kB / 449.5 MB, free: 7.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.4901, allocations: 155.3 kB / 449.7 MB, free: 7.871 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.164e-05/0.4901, allocations: 0 / 449.7 MB, free: 7.871 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.104e-05/0.4902, allocations: 339.3 kB / 450 MB, free: 7.551 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002427/0.4904, allocations: 170.8 kB / 450.2 MB, free: 7.535 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002626/0.4907, allocations: 235.7 kB / 450.4 MB, free: 7.461 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003594/0.4911, allocations: 148.5 kB / 450.6 MB, free: 7.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4911, allocations: 0 / 450.6 MB, free: 7.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001376/0.4924, allocations: 0.5801 MB / 451.1 MB, free: 7.285 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.4925, allocations: 11.67 kB / 451.1 MB, free: 7.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.4925, allocations: 11.08 kB / 451.2 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005705/0.4931, allocations: 372 kB / 451.5 MB, free: 7.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002692/0.4934, allocations: 72.48 kB / 451.6 MB, free: 7.164 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/0.4944, allocations: 1.366 MB / 453 MB, free: 6.078 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004764/0.4949, allocations: 97.53 kB / 453.1 MB, free: 6.047 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.798e-05/0.4949, allocations: 22.52 kB / 453.1 MB, free: 6.043 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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 () * 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.0001658/0.4951, allocations: 122.1 kB / 453.2 MB, free: 5.926 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.515e-05/0.4952, allocations: 23.22 kB / 453.2 MB, free: 5.914 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001357/0.4966, allocations: 0.6098 MB / 453.8 MB, free: 5.711 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.4966, allocations: 3.875 kB / 453.8 MB, free: 5.711 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.4966, allocations: 0 / 453.8 MB, free: 5.711 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.4966, allocations: 7.922 kB / 453.8 MB, free: 5.703 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002356/0.499, allocations: 1.236 MB / 455.1 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.499, allocations: 0 / 455.1 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002875/0.4993, allocations: 61.09 kB / 455.1 MB, free: 5.094 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000493/0.4998, allocations: 332.4 kB / 455.5 MB, free: 5.004 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.279e-05/0.4998, allocations: 14.7 kB / 455.5 MB, free: 5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009533/0.5008, allocations: 1.314 MB / 456.8 MB, free: 3.902 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.5008, allocations: 0 / 456.8 MB, free: 3.902 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001387/0.5022, allocations: 0.877 MB / 457.7 MB, free: 3.52 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001661/0.5039, allocations: 1.442 MB / 459.1 MB, free: 2.758 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001979/0.5041, allocations: 161.1 kB / 459.3 MB, free: 18.62 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.783e-05/0.5042, allocations: 11.05 kB / 459.3 MB, free: 18.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000335/0.5045, allocations: 50.41 kB / 459.3 MB, free: 18.6 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001717/0.5047, allocations: 104.5 kB / 459.4 MB, free: 18.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.741e-05/0.5048, allocations: 18.64 kB / 459.4 MB, free: 18.54 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001191/0.5049, allocations: 146.5 kB / 459.6 MB, free: 18.45 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001128/0.506, allocations: 88.5 kB / 459.7 MB, free: 18.44 MB / 330.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) * 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.0002597/0.5063, allocations: 143.7 kB / 459.8 MB, free: 18.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008396/0.5071, allocations: 484.8 kB / 460.3 MB, free: 18.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.5071, allocations: 3.938 kB / 460.3 MB, free: 18.22 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005131/0.5077, allocations: 250 kB / 460.5 MB, free: 18.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004195/0.5081, allocations: 38.66 kB / 460.6 MB, free: 18.18 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.5095, allocations: 0.6956 MB / 461.3 MB, free: 17.74 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004361/0.51, allocations: 0.8267 MB / 462.1 MB, free: 16.98 MB / 330.7 MB Notification: Performance of SimCode: time 3.01e-07/0.51, allocations: 4 kB / 462.1 MB, free: 16.98 MB / 330.7 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/linux/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)