Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001362/0.001362, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002358/0.002359, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 59.47 kB / 307 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1171, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.004227/0.1214, allocations: 2.362 MB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.1231, allocations: 0.7674 MB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002809/0.1234, allocations: 7.938 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002038/0.1237, allocations: 31.66 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004185/0.1241, allocations: 91.2 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004624/0.1246, allocations: 115.7 kB / 360.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004705/0.125, allocations: 302.7 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.1252, allocations: 68.69 kB / 361.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002036/0.1255, allocations: 107.6 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002451/0.1257, allocations: 123.4 kB / 361.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.375e-05/0.1258, allocations: 28 kB / 361.6 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.819e-05/0.1258, allocations: 20 kB / 361.6 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.483e-05/0.1259, allocations: 55.77 kB / 361.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.126, allocations: 127.4 kB / 361.8 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002938/0.1263, allocations: 275.2 kB / 362 MB, free: 9.535 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1263, allocations: 0 / 362 MB, free: 9.535 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1264, allocations: 0 / 362 MB, free: 9.535 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.1264, allocations: 0 / 362 MB, free: 9.535 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009298/0.1273, allocations: 0.5457 MB / 362.6 MB, free: 8.941 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.1274, allocations: 12.03 kB / 362.6 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.617e-05/0.1274, allocations: 50.73 kB / 362.6 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.676e-05/0.1275, allocations: 32.56 kB / 362.7 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003181/0.1278, allocations: 261.4 kB / 362.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.171e-05/0.1279, allocations: 12.81 kB / 362.9 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.02e-05/0.128, allocations: 24.38 kB / 363 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004307/0.1284, allocations: 250.8 kB / 363.2 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.1284, allocations: 3.906 kB / 363.2 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.86e-05/0.1285, allocations: 15.94 kB / 363.2 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.1285, allocations: 4 kB / 363.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003733/0.1289, allocations: 163.8 kB / 363.4 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.1302, allocations: 1.012 MB / 364.4 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005418/0.1308, allocations: 294.2 kB / 364.7 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.131, allocations: 95.39 kB / 364.8 MB, free: 6.531 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.131, allocations: 4 kB / 364.8 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.131, allocations: 39.03 kB / 364.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.783e-06/0.131, allocations: 0 / 364.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001946/0.133, allocations: 1.328 MB / 366.1 MB, free: 4.961 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.91e-05/0.1331, allocations: 136.5 kB / 366.3 MB, free: 4.797 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001926/0.1333, allocations: 206.7 kB / 366.5 MB, free: 4.582 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.1333, allocations: 37.64 kB / 366.5 MB, free: 4.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.45e-05/0.1334, allocations: 156.4 kB / 366.7 MB, free: 4.383 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.853e-05/0.1335, allocations: 118.3 kB / 366.8 MB, free: 4.266 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.002e-05/0.1336, allocations: 70.12 kB / 366.9 MB, free: 4.188 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.1337, allocations: 334.8 kB / 367.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001808/0.1339, allocations: 80.84 kB / 367.3 MB, free: 3.773 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.1341, allocations: 198 kB / 367.5 MB, free: 3.531 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004141/0.1345, allocations: 297.5 kB / 367.7 MB, free: 3.191 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1346, allocations: 4 kB / 367.7 MB, free: 3.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005764/0.1351, allocations: 353 kB / 368.1 MB, free: 2.836 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.1352, allocations: 10.97 kB / 368.1 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.1352, allocations: 4 kB / 368.1 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.1352, allocations: 4 kB / 368.1 MB, free: 2.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003506/0.1356, allocations: 91.89 kB / 368.2 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.1356, allocations: 11.94 kB / 368.2 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001612/0.1358, allocations: 11.94 kB / 368.2 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.197e-05/0.1358, allocations: 23.98 kB / 368.2 MB, free: 2.684 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001346/0.1359, allocations: 149.9 kB / 368.4 MB, free: 2.527 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.945e-05/0.136, allocations: 23.72 kB / 368.4 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.284e-05/0.1361, allocations: 29.39 kB / 368.4 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.387e-06/0.1361, allocations: 4 kB / 368.5 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.1361, allocations: 4 kB / 368.5 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.1361, allocations: 3.938 kB / 368.5 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001359/0.1375, allocations: 0.9788 MB / 369.4 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.1375, allocations: 8.25 kB / 369.4 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000349/0.1379, allocations: 75.89 kB / 369.5 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.1379, allocations: 7.938 kB / 369.5 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.1379, allocations: 8 kB / 369.5 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.1379, allocations: 8 kB / 369.5 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1379, allocations: 0 / 369.5 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009507/0.1389, allocations: 0.7039 MB / 370.2 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.895e-05/0.139, allocations: 104.8 kB / 370.4 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.512e-05/0.1391, allocations: 8 kB / 370.4 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.1393, allocations: 11.94 kB / 370.4 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.1394, allocations: 31.84 kB / 370.4 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.217e-05/0.1395, allocations: 20.23 kB / 370.4 MB, free: 360 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001199/0.1396, allocations: 144.6 kB / 370.6 MB, free: 216 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1396, allocations: 0 / 370.6 MB, free: 216 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004938/0.1401, allocations: 64 kB / 370.6 MB, free: 152 kB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1809/0.321, allocations: 1.229 MB / 371.9 MB, free: 18.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005659/0.3216, allocations: 253.6 kB / 372.1 MB, free: 18.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3216, allocations: 2.031 kB / 372.1 MB, free: 18.69 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002179/0.3218, allocations: 124.8 kB / 372.2 MB, free: 18.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008439/0.3227, allocations: 75.59 kB / 372.3 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004992/0.3277, allocations: 3.502 MB / 375.8 MB, free: 16.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000435/0.3281, allocations: 0.7596 MB / 376.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002748/0.3284, allocations: 32.7 kB / 376.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/0.3286, allocations: 81.59 kB / 376.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3287, allocations: 0 / 376.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04146/0.3701, allocations: 5.641 MB / 382.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.337/7.708, allocations: 12.66 kB / 382.3 MB, free: 15.05 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1)