Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Translational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Translational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Translational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Translational_TestBraking",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.0008142/0.0008142, allocations: 96.78 kB / 17 MB, free: 6.418 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.000893/0.000893, allocations: 189.2 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 223.2 MB / 241.9 MB, free: 344 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2266/0.2266, allocations: 44.22 MB / 337.2 MB, free: 2.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002772/0.0002772, allocations: 8 kB / 409.7 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1038, allocations: 61.92 MB / 471.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Translational.TestBraking): time 0.002586/0.1064, allocations: 2.356 MB / 474 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.1079, allocations: 0.8963 MB / 474.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001478/0.1081, allocations: 4 kB / 474.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.1082, allocations: 39.7 kB / 474.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.1084, allocations: 91.22 kB / 475 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004109/0.1088, allocations: 115.7 kB / 475.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003603/0.1092, allocations: 350.2 kB / 475.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.1094, allocations: 77.55 kB / 475.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001294/0.1095, allocations: 119.5 kB / 475.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001909/0.1097, allocations: 139.4 kB / 475.8 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.145e-05/0.1098, allocations: 12 kB / 475.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.947e-05/0.1099, allocations: 31.98 kB / 475.8 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.8e-05/0.1099, allocations: 47.78 kB / 475.9 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.993e-05/0.11, allocations: 81.58 kB / 476 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002891/0.1103, allocations: 275.5 kB / 476.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.1103, allocations: 4 kB / 476.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1103, allocations: 0 / 476.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.1103, allocations: 0 / 476.2 MB, free: 9.016 MB / 350.1 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.0008752/0.1112, allocations: 0.5729 MB / 476.8 MB, free: 8.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.1113, allocations: 8.031 kB / 476.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.33e-05/0.1113, allocations: 66.53 kB / 476.9 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.1115, allocations: 47.61 kB / 476.9 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002939/0.1118, allocations: 262.5 kB / 477.2 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/0.1119, allocations: 24.59 kB / 477.2 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.335e-05/0.1119, allocations: 35.95 kB / 477.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004312/0.1124, allocations: 298.7 kB / 477.5 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.1124, allocations: 11.91 kB / 477.6 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/0.1124, allocations: 16 kB / 477.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.1124, allocations: 7.984 kB / 477.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003178/0.1128, allocations: 198.1 kB / 477.8 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.1144, allocations: 1.293 MB / 479.1 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004949/0.1149, allocations: 333.1 kB / 479.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.1151, allocations: 108.3 kB / 479.5 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.1151, allocations: 4 kB / 479.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.1151, allocations: 46.5 kB / 479.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.334e-06/0.1151, allocations: 0 / 479.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002262/0.1174, allocations: 1.566 MB / 481.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.221e-05/0.1175, allocations: 170.1 kB / 481.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.1177, allocations: 217 kB / 481.5 MB, free: 3.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.1177, allocations: 29.7 kB / 481.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.1179, allocations: 180.2 kB / 481.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.853e-05/0.118, allocations: 153.8 kB / 481.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.73e-05/0.118, allocations: 12 kB / 481.9 MB, free: 2.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1181, allocations: 338.8 kB / 482.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.1183, allocations: 93.08 kB / 482.3 MB, free: 2.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/0.1185, allocations: 248.1 kB / 482.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.1187, allocations: 133.4 kB / 482.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1188, allocations: 0 / 482.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005621/0.1193, allocations: 405.1 kB / 483 MB, free: 1.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.1194, allocations: 15.98 kB / 483.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.1194, allocations: 4 kB / 483.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.1194, allocations: 8 kB / 483.1 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003738/0.1198, allocations: 115.8 kB / 483.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.1198, allocations: 11.98 kB / 483.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.12, allocations: 19.91 kB / 483.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.843e-05/0.12, allocations: 20 kB / 483.2 MB, free: 1.391 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (62): * Single equations (assignments): 62 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000138/0.1201, allocations: 158.2 kB / 483.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.1203, allocations: 31.72 kB / 483.4 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002097/0.1205, allocations: 127.2 kB / 483.5 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.249e-06/0.1205, allocations: 4 kB / 483.5 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.1205, allocations: 4 kB / 483.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.1205, allocations: 4.266 kB / 483.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0014/0.1219, allocations: 1.034 MB / 484.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.1219, allocations: 12.17 kB / 484.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000396/0.1224, allocations: 95.91 kB / 484.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.1224, allocations: 4 kB / 484.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.777e-05/0.1224, allocations: 15.98 kB / 484.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.261e-06/0.1224, allocations: 7.938 kB / 484.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.1224, allocations: 4 kB / 484.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006939/0.1231, allocations: 0.8229 MB / 485.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.124e-05/0.1232, allocations: 116.7 kB / 485.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.163e-05/0.1233, allocations: 8 kB / 485.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002755/0.1235, allocations: 8 kB / 485.7 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.667e-05/0.1236, allocations: 39.86 kB / 485.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.076e-05/0.1236, allocations: 15.98 kB / 485.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001207/0.1237, allocations: 152.5 kB / 485.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1238, allocations: 4 kB / 485.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005253/0.1243, allocations: 84 kB / 486 MB, free: 14.49 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 11 (mass5.s,mass5.v,heatCapacitor.T,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 (41): * Single equations (assignments): 41 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009001/0.1252, allocations: 1.37 MB / 487.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004088/0.1256, allocations: 271.4 kB / 487.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1256, allocations: 0 / 487.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001857/0.1258, allocations: 132.8 kB / 487.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008129/0.1266, allocations: 78.83 kB / 487.8 MB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00339/0.13, allocations: 2.596 MB / 490.4 MB, free: 9.848 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/0.1304, allocations: 0.7884 MB / 491.2 MB, free: 9.035 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.1306, allocations: 31.28 kB / 491.2 MB, free: 9.008 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.1308, allocations: 111.4 kB / 491.3 MB, free: 8.902 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1308, allocations: 0 / 491.3 MB, free: 8.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01563/0.1464, allocations: 5.845 MB / 497.2 MB, free: 3.199 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/0.1466, allocations: 182.8 kB / 497.4 MB, free: 2.953 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.901/2.048, allocations: 3.938 kB / 497.4 MB, free: 2.949 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Translational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Translational_TestBraking.fmu > ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Translational.TestBraking_res.mat does not exist to compare? outputFormat=mat