Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00112/0.00112, allocations: 195.2 kB / 8.536 MB, free: 1.773 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.176/1.176, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008918/0.0008919, allocations: 91.62 kB / 286.3 MB, free: 5.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09869/0.09961, allocations: 56.9 MB / 343.2 MB, free: 8.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08599/0.1856, allocations: 51.46 MB / 394.7 MB, free: 5 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2203/0.4059, allocations: 79.72 MB / 474.4 MB, free: 12.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001654/0.4061, allocations: 69.66 kB / 474.5 MB, free: 12.31 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.01949/0.4256, allocations: 8.265 MB / 482.7 MB, free: 6.297 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.4257, allocations: 8 kB / 482.8 MB, free: 6.289 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.765e-05/0.4258, allocations: 39.53 kB / 482.8 MB, free: 6.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003417/0.4261, allocations: 288.9 kB / 483.1 MB, free: 5.957 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.4262, allocations: 8 kB / 483.1 MB, free: 5.949 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.801e-05/0.4262, allocations: 20 kB / 483.1 MB, free: 5.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005446/0.4268, allocations: 335.1 kB / 483.4 MB, free: 5.715 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004754/0.4273, allocations: 315.8 kB / 483.7 MB, free: 5.484 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.4273, allocations: 7.938 kB / 483.7 MB, free: 5.477 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.721e-05/0.4274, allocations: 5.5 kB / 483.8 MB, free: 5.473 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.4274, allocations: 4 kB / 483.8 MB, free: 5.469 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.4292, allocations: 1.108 MB / 484.9 MB, free: 4.516 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003067/0.4295, allocations: 239.3 kB / 485.1 MB, free: 4.359 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002188/0.4297, allocations: 164.3 kB / 485.3 MB, free: 4.262 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.328e-05/0.4298, allocations: 7.984 kB / 485.3 MB, free: 4.254 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.626e-05/0.4298, allocations: 38.28 kB / 485.3 MB, free: 4.211 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.793e-06/0.4298, allocations: 0 / 485.3 MB, free: 4.211 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002203/0.432, allocations: 1.3 MB / 486.6 MB, free: 3.055 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.6e-05/0.4321, allocations: 59.83 kB / 486.7 MB, free: 2.984 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.4322, allocations: 210.4 kB / 486.9 MB, free: 2.801 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.338e-05/0.4323, allocations: 32.83 kB / 486.9 MB, free: 2.766 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.366e-05/0.4323, allocations: 142.1 kB / 487 MB, free: 2.633 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.619e-05/0.4324, allocations: 152.1 kB / 487.2 MB, free: 2.504 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.727e-05/0.4325, allocations: 4 kB / 487.2 MB, free: 2.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.338e-05/0.4325, allocations: 345.2 kB / 487.5 MB, free: 2.168 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002419/0.4328, allocations: 163.5 kB / 487.7 MB, free: 2.082 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002804/0.4331, allocations: 239.3 kB / 487.9 MB, free: 1.902 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.4333, allocations: 133.9 kB / 488.1 MB, free: 1.812 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4333, allocations: 4 kB / 488.1 MB, free: 1.809 MB / 346.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008182/0.4341, allocations: 0.5254 MB / 488.6 MB, free: 1.422 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.4341, allocations: 4 kB / 488.6 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.4341, allocations: 4 kB / 488.6 MB, free: 1.414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005007/0.4346, allocations: 276.4 kB / 488.9 MB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002768/0.4349, allocations: 75.89 kB / 488.9 MB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/0.4359, allocations: 1.391 MB / 490.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004783/0.4364, allocations: 100 kB / 490.4 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.745e-05/0.4365, allocations: 15.88 kB / 490.4 MB, free: 15.75 MB / 362.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 (47): * Single equations (assignments): 45 * 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 9,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001638/0.4367, allocations: 119.4 kB / 490.6 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.063e-05/0.4368, allocations: 35.62 kB / 490.6 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.87e-05/0.4368, allocations: 46.09 kB / 490.6 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.4369, allocations: 11.98 kB / 490.6 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4369, allocations: 0 / 490.6 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.4369, allocations: 5.484 kB / 490.7 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002374/0.4393, allocations: 1.265 MB / 491.9 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.4393, allocations: 4 kB / 491.9 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003144/0.4396, allocations: 62.59 kB / 492 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004599/0.4401, allocations: 245.5 kB / 492.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.608e-05/0.4401, allocations: 11.48 kB / 492.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001104/0.4412, allocations: 1.342 MB / 493.6 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4413, allocations: 4.812 kB / 493.6 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001306/0.4426, allocations: 0.875 MB / 494.5 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001696/0.4443, allocations: 1.464 MB / 495.9 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000174/0.4445, allocations: 158.2 kB / 496.1 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.949e-05/0.4446, allocations: 15.16 kB / 496.1 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003496/0.4449, allocations: 54.02 kB / 496.1 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.4451, allocations: 98.09 kB / 496.2 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.66e-05/0.4452, allocations: 16.92 kB / 496.3 MB, free: 10.74 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000131/0.4453, allocations: 165.1 kB / 496.4 MB, free: 10.6 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001037/0.4464, allocations: 91.92 kB / 496.5 MB, free: 10.51 MB / 362.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 7,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005813/0.4469, allocations: 288.5 kB / 496.8 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008314/0.4478, allocations: 437.4 kB / 497.2 MB, free: 10.04 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4478, allocations: 0 / 497.2 MB, free: 10.04 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005139/0.4483, allocations: 257.2 kB / 497.5 MB, free: 9.879 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003972/0.4487, allocations: 45.77 kB / 497.5 MB, free: 9.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.4503, allocations: 0.7437 MB / 498.3 MB, free: 9.137 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004385/0.4508, allocations: 0.8402 MB / 499.1 MB, free: 8.277 MB / 362.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4508, allocations: 7.875 kB / 499.1 MB, free: 8.27 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat