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.001094/0.001094, allocations: 95.23 kB / 16.94 MB, free: 5.98 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.001141/0.001141, allocations: 178.7 kB / 17.82 MB, free: 5.652 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.633/1.633, allocations: 205.4 MB / 224 MB, free: 13.17 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.0005058/0.0005059, allocations: 12.78 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1089, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002298/0.1113, allocations: 1.953 MB / 330.4 MB, free: 2.031 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009399/0.1123, allocations: 0.5039 MB / 330.9 MB, free: 1.523 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.1124, allocations: 4 kB / 330.9 MB, free: 1.52 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.1126, allocations: 31.77 kB / 330.9 MB, free: 1.488 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001832/0.1127, allocations: 99.72 kB / 331 MB, free: 1.391 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000408/0.1132, allocations: 139.7 kB / 331.1 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003419/0.1135, allocations: 295.9 kB / 331.4 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.1137, allocations: 56.7 kB / 331.5 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/0.1139, allocations: 183.4 kB / 331.7 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.1142, allocations: 211.2 kB / 331.9 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.097e-05/0.1142, allocations: 20 kB / 331.9 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001333/0.1143, allocations: 59.95 kB / 332 MB, free: 460 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.869e-05/0.1144, allocations: 71.78 kB / 332 MB, free: 388 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.816e-05/0.1145, allocations: 81.52 kB / 332.1 MB, free: 300 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003324/0.1149, allocations: 323.4 kB / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1149, allocations: 8 kB / 332.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.1149, allocations: 0 / 332.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.1149, allocations: 0 / 332.4 MB, free: 15.97 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.001129/0.116, allocations: 0.6197 MB / 333 MB, free: 15.3 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.1161, allocations: 8.031 kB / 333.1 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.425e-05/0.1162, allocations: 70.48 kB / 333.1 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.411e-05/0.1163, allocations: 31.62 kB / 333.2 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003188/0.1166, allocations: 283.3 kB / 333.4 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.388e-05/0.1166, allocations: 20.56 kB / 333.4 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.584e-05/0.1167, allocations: 24 kB / 333.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006572/0.1174, allocations: 380.6 kB / 333.8 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.1174, allocations: 7.906 kB / 333.9 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.083e-05/0.1174, allocations: 16 kB / 333.9 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.1175, allocations: 8 kB / 333.9 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007013/0.1182, allocations: 402 kB / 334.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/0.1201, allocations: 1.131 MB / 335.4 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000495/0.1206, allocations: 303.5 kB / 335.7 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.844e-05/0.1207, allocations: 4.328 kB / 335.7 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.1207, allocations: 35.22 kB / 335.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 2.104e-06/0.1207, allocations: 0 / 335.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004591/0.1253, allocations: 2.1 MB / 337.8 MB, free: 10.22 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.1254, allocations: 59.36 kB / 337.9 MB, free: 10.15 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002445/0.1256, allocations: 244.9 kB / 338.1 MB, free: 9.898 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.997e-05/0.1257, allocations: 37.7 kB / 338.2 MB, free: 9.855 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.1258, allocations: 148.7 kB / 338.3 MB, free: 9.703 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.1259, allocations: 154 kB / 338.5 MB, free: 9.551 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.978e-05/0.126, allocations: 12 kB / 338.5 MB, free: 9.539 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1261, allocations: 334.8 kB / 338.8 MB, free: 9.203 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003731/0.1265, allocations: 209 kB / 339 MB, free: 9 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004285/0.1269, allocations: 292.7 kB / 339.3 MB, free: 8.688 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003442/0.1273, allocations: 180.8 kB / 339.5 MB, free: 8.508 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1273, allocations: 0 / 339.5 MB, free: 8.508 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001373/0.1287, allocations: 0.6963 MB / 340.2 MB, free: 7.801 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.1287, allocations: 8 kB / 340.2 MB, free: 7.793 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.1287, allocations: 0 / 340.2 MB, free: 7.793 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008725/0.1296, allocations: 493.5 kB / 340.7 MB, free: 7.305 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000293/0.1299, allocations: 75.89 kB / 340.7 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/0.1312, allocations: 1.386 MB / 342.1 MB, free: 5.793 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004484/0.1316, allocations: 92.02 kB / 342.2 MB, free: 5.703 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.237e-05/0.1317, allocations: 19.98 kB / 342.2 MB, free: 5.684 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.0002184/0.1319, allocations: 165.9 kB / 342.4 MB, free: 5.512 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.424e-05/0.132, allocations: 39.58 kB / 342.4 MB, free: 5.473 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.1321, allocations: 47.3 kB / 342.5 MB, free: 5.43 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.934e-06/0.1321, allocations: 8 kB / 342.5 MB, free: 5.422 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.1321, allocations: 3.984 kB / 342.5 MB, free: 5.418 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.1322, allocations: 0 / 342.5 MB, free: 5.418 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002687/0.1348, allocations: 1.376 MB / 343.9 MB, free: 3.965 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/0.1349, allocations: 11.94 kB / 343.9 MB, free: 3.953 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.1352, allocations: 64.08 kB / 343.9 MB, free: 3.891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00074/0.1359, allocations: 465.3 kB / 344.4 MB, free: 3.43 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.822e-05/0.136, allocations: 15.98 kB / 344.4 MB, free: 3.414 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00112/0.1371, allocations: 1.343 MB / 345.7 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1371, allocations: 0 / 345.7 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001865/0.139, allocations: 1.01 MB / 346.8 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002349/0.1392, allocations: 152.7 kB / 346.9 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.556e-05/0.1393, allocations: 20 kB / 346.9 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003297/0.1397, allocations: 55.95 kB / 347 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/0.1399, allocations: 99.73 kB / 347.1 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.631e-05/0.1399, allocations: 19.98 kB / 347.1 MB, free: 0.582 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002053/0.1401, allocations: 168.5 kB / 347.3 MB, free: 428 kB / 286.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1402, allocations: 0 / 347.3 MB, free: 428 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006527/0.1408, allocations: 112 kB / 347.4 MB, free: 316 kB / 286.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.002679/0.1435, allocations: 1.914 MB / 349.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001214/0.1447, allocations: 0.5106 MB / 349.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/0.1448, allocations: 4.312 kB / 349.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006309/0.1454, allocations: 292 kB / 350.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004295/0.1458, allocations: 44.34 kB / 350.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005323/0.1512, allocations: 3.732 MB / 353.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004866/0.1517, allocations: 0.7917 MB / 354.7 MB, free: 8.832 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000142/0.1518, allocations: 34.97 kB / 354.7 MB, free: 8.797 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.152, allocations: 83.41 kB / 354.8 MB, free: 8.715 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.152, allocations: 0 / 354.8 MB, free: 8.715 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02449/0.1765, allocations: 10.5 MB / 365.3 MB, free: 14.21 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001819/0.1767, allocations: 208.4 kB / 365.5 MB, free: 13.97 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/2.134, allocations: 0 / 365.5 MB, free: 13.97 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