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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009987/0.0009987, allocations: 95 kB / 16.96 MB, free: 6.441 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.001037/0.001037, allocations: 177.8 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.592/1.592, allocations: 205.4 MB / 224 MB, free: 13.06 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004665/0.0004668, allocations: 8 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1176, allocations: 47.58 MB / 328.5 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002643/0.1203, allocations: 2.03 MB / 330.5 MB, free: 1.918 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009756/0.1213, allocations: 496 kB / 331 MB, free: 1.43 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.1214, allocations: 4 kB / 331 MB, free: 1.426 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002028/0.1217, allocations: 39.69 kB / 331 MB, free: 1.387 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001411/0.1218, allocations: 71.45 kB / 331.1 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004059/0.1222, allocations: 147.7 kB / 331.2 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004477/0.1227, allocations: 427.2 kB / 331.6 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.1228, allocations: 52.7 kB / 331.7 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002224/0.1231, allocations: 191.3 kB / 331.9 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002793/0.1234, allocations: 215.2 kB / 332.1 MB, free: 316 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.804e-05/0.1234, allocations: 20 kB / 332.1 MB, free: 296 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001372/0.1236, allocations: 59.95 kB / 332.2 MB, free: 236 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.1237, allocations: 83.7 kB / 332.2 MB, free: 152 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.277e-05/0.1238, allocations: 69.58 kB / 332.3 MB, free: 76 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003446/0.1241, allocations: 331.4 kB / 332.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1241, allocations: 0 / 332.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1241, allocations: 0 / 332.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.1242, allocations: 0 / 332.6 MB, free: 15.75 MB / 286.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.001126/0.1253, allocations: 0.6236 MB / 333.3 MB, free: 15.08 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.1253, allocations: 12.03 kB / 333.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.101e-05/0.1254, allocations: 62.53 kB / 333.3 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.854e-05/0.1255, allocations: 31.62 kB / 333.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/0.1259, allocations: 279.3 kB / 333.6 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.707e-05/0.1259, allocations: 20.56 kB / 333.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.331e-05/0.126, allocations: 35.98 kB / 333.7 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007133/0.1267, allocations: 376.7 kB / 334.1 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.1267, allocations: 3.906 kB / 334.1 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/0.1268, allocations: 12 kB / 334.1 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.47e-05/0.1268, allocations: 8 kB / 334.1 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007542/0.1275, allocations: 406 kB / 334.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.1294, allocations: 1.131 MB / 335.6 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005048/0.1299, allocations: 303.4 kB / 335.9 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003877/0.1303, allocations: 197.8 kB / 336.1 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.049e-05/0.1304, allocations: 4 kB / 336.1 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.351e-05/0.1304, allocations: 46.5 kB / 336.2 MB, free: 12.03 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 3.517e-06/0.1304, allocations: 4 kB / 336.2 MB, free: 12.03 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004375/0.1348, allocations: 2.108 MB / 338.3 MB, free: 9.781 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.1349, allocations: 55.41 kB / 338.3 MB, free: 9.715 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.1351, allocations: 240.9 kB / 338.6 MB, free: 9.469 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.618e-05/0.1352, allocations: 37.7 kB / 338.6 MB, free: 9.426 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.1353, allocations: 152.7 kB / 338.7 MB, free: 9.27 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001346/0.1355, allocations: 150 kB / 338.9 MB, free: 9.121 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.182e-05/0.1355, allocations: 12 kB / 338.9 MB, free: 9.109 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1357, allocations: 334.8 kB / 339.2 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003735/0.1361, allocations: 209 kB / 339.4 MB, free: 8.57 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004379/0.1365, allocations: 284.8 kB / 339.7 MB, free: 8.266 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000341/0.1369, allocations: 176.7 kB / 339.9 MB, free: 8.09 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1369, allocations: 0 / 339.9 MB, free: 8.09 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001352/0.1382, allocations: 0.7001 MB / 340.6 MB, free: 7.379 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.1383, allocations: 4 kB / 340.6 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.1383, allocations: 4 kB / 340.6 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008795/0.1392, allocations: 493.5 kB / 341.1 MB, free: 6.883 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002748/0.1395, allocations: 75.84 kB / 341.1 MB, free: 6.809 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.1408, allocations: 1.39 MB / 342.5 MB, free: 5.367 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004161/0.1412, allocations: 96.03 kB / 342.6 MB, free: 5.273 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.965e-05/0.1413, allocations: 16 kB / 342.6 MB, free: 5.258 MB / 286.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 (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): 47 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002227/0.1415, allocations: 169.9 kB / 342.8 MB, free: 5.082 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.107e-05/0.1416, allocations: 31.62 kB / 342.8 MB, free: 5.051 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.1417, allocations: 47.3 kB / 342.9 MB, free: 5.008 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1417, allocations: 4 kB / 342.9 MB, free: 5.004 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.1417, allocations: 0 / 342.9 MB, free: 5.004 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1418, allocations: 0 / 342.9 MB, free: 5.004 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002581/0.1443, allocations: 1.399 MB / 344.3 MB, free: 3.527 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1444, allocations: 0 / 344.3 MB, free: 3.527 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002617/0.1446, allocations: 63.91 kB / 344.4 MB, free: 3.465 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007251/0.1454, allocations: 469.6 kB / 344.8 MB, free: 3 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.343e-05/0.1454, allocations: 19.98 kB / 344.8 MB, free: 2.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001206/0.1466, allocations: 1.335 MB / 346.2 MB, free: 1.594 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.1466, allocations: 4.031 kB / 346.2 MB, free: 1.59 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001743/0.1484, allocations: 0.9471 MB / 347.1 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002293/0.1486, allocations: 152.7 kB / 347.3 MB, free: 448 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.81e-05/0.1487, allocations: 23.94 kB / 347.3 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002822/0.149, allocations: 43.97 kB / 347.3 MB, free: 380 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002143/0.1493, allocations: 103.8 kB / 347.4 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.206e-05/0.1493, allocations: 27.91 kB / 347.5 MB, free: 248 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002077/0.1495, allocations: 168.5 kB / 347.6 MB, free: 80 kB / 286.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1495, allocations: 0 / 347.6 MB, free: 80 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005711/0.1501, allocations: 100 kB / 347.7 MB, free: 15.98 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 (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.002404/0.1525, allocations: 1.523 MB / 349.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.1537, allocations: 0.5108 MB / 349.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.1537, allocations: 0 / 349.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005721/0.1543, allocations: 292 kB / 350 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004959/0.1548, allocations: 48.8 kB / 350.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005313/0.1601, allocations: 2.689 MB / 352.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005086/0.1607, allocations: 0.7764 MB / 353.6 MB, free: 9.984 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00017/0.1609, allocations: 38.95 kB / 353.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.161, allocations: 87.39 kB / 353.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of SimCode: time 9.92e-07/0.161, allocations: 0 / 353.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02795/0.189, allocations: 10.53 MB / 364.2 MB, free: 15.32 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002103/0.1893, allocations: 213.4 kB / 364.4 MB, free: 15.08 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.11/2.299, allocations: 0 / 364.4 MB, free: 15.08 MB / 318.1 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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat