Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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) 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(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",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.00088/0.0008801, allocations: 85.81 kB / 16.32 MB, free: 6.457 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.0009525/0.0009527, allocations: 183.5 kB / 17.21 MB, free: 6.324 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.56/1.56, allocations: 223.2 MB / 241.2 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002385/0.0002386, allocations: 6.75 kB / 300.9 MB, free: 6.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.112, allocations: 50.42 MB / 351.3 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001669/0.1138, allocations: 1.31 MB / 352.6 MB, free: 10.44 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007309/0.1145, allocations: 0.4912 MB / 353.1 MB, free: 9.945 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.064e-05/0.1146, allocations: 0 / 353.1 MB, free: 9.945 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.316e-05/0.1146, allocations: 11.92 kB / 353.1 MB, free: 9.934 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.3e-05/0.1147, allocations: 19.83 kB / 353.2 MB, free: 9.914 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001853/0.1149, allocations: 27.92 kB / 353.2 MB, free: 9.887 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001206/0.115, allocations: 95.52 kB / 353.3 MB, free: 9.793 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.1151, allocations: 27.92 kB / 353.3 MB, free: 9.766 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.956e-05/0.1152, allocations: 23.94 kB / 353.3 MB, free: 9.742 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.906e-05/0.1153, allocations: 35.84 kB / 353.4 MB, free: 9.707 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.1153, allocations: 4 kB / 353.4 MB, free: 9.703 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.21e-05/0.1154, allocations: 8 kB / 353.4 MB, free: 9.695 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.574e-05/0.1154, allocations: 19.97 kB / 353.4 MB, free: 9.676 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.604e-05/0.1155, allocations: 41.64 kB / 353.4 MB, free: 9.629 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.1156, allocations: 75.8 kB / 353.5 MB, free: 9.555 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1156, allocations: 0 / 353.5 MB, free: 9.555 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1156, allocations: 0 / 353.5 MB, free: 9.555 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.1156, allocations: 0 / 353.5 MB, free: 9.555 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004436/0.1161, allocations: 363.2 kB / 353.9 MB, free: 9.152 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.1161, allocations: 8.031 kB / 353.9 MB, free: 9.145 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.635e-05/0.1162, allocations: 46.5 kB / 353.9 MB, free: 9.09 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.1163, allocations: 7.906 kB / 353.9 MB, free: 9.082 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001169/0.1164, allocations: 175 kB / 354.1 MB, free: 8.871 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.1165, allocations: 8 kB / 354.1 MB, free: 8.863 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.915e-05/0.1165, allocations: 15.84 kB / 354.1 MB, free: 8.848 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001792/0.1167, allocations: 92.19 kB / 354.2 MB, free: 8.754 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.1167, allocations: 3.984 kB / 354.2 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.1167, allocations: 0 / 354.2 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.1167, allocations: 4 kB / 354.2 MB, free: 8.746 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.1168, allocations: 51.97 kB / 354.3 MB, free: 8.695 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006249/0.1175, allocations: 396.4 kB / 354.7 MB, free: 8.258 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000134/0.1176, allocations: 86.59 kB / 354.7 MB, free: 8.164 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.472e-05/0.1177, allocations: 28.86 kB / 354.8 MB, free: 8.133 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.1177, allocations: 0 / 354.8 MB, free: 8.133 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.1177, allocations: 38.55 kB / 354.8 MB, free: 8.086 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 8.71e-07/0.1177, allocations: 0 / 354.8 MB, free: 8.086 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.000208/0.118, allocations: 81.92 kB / 354.9 MB, free: 8 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.339e-05/0.118, allocations: 55.34 kB / 354.9 MB, free: 7.934 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.006e-05/0.1181, allocations: 109.8 kB / 355 MB, free: 7.816 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.1181, allocations: 25.7 kB / 355.1 MB, free: 7.785 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.411e-05/0.1182, allocations: 111.7 kB / 355.2 MB, free: 7.672 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.081e-05/0.1182, allocations: 23.66 kB / 355.2 MB, free: 7.648 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-06/0.1182, allocations: 4 kB / 355.2 MB, free: 7.645 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1183, allocations: 322.8 kB / 355.5 MB, free: 7.32 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.85e-05/0.1184, allocations: 16 kB / 355.5 MB, free: 7.305 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.262e-05/0.1184, allocations: 45.81 kB / 355.6 MB, free: 7.254 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.278e-05/0.1185, allocations: 31.94 kB / 355.6 MB, free: 7.223 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1185, allocations: 0 / 355.6 MB, free: 7.223 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001474/0.1187, allocations: 113.4 kB / 355.7 MB, free: 7.105 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.1187, allocations: 8 kB / 355.7 MB, free: 7.098 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.1187, allocations: 80 / 355.7 MB, free: 7.098 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.558e-06/0.1187, allocations: 0 / 355.7 MB, free: 7.098 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.1188, allocations: 31.92 kB / 355.8 MB, free: 7.066 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.1188, allocations: 7.984 kB / 355.8 MB, free: 7.059 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.327e-05/0.1189, allocations: 11.84 kB / 355.8 MB, free: 7.047 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.643e-06/0.1189, allocations: 256 / 355.8 MB, free: 7.047 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (13): * Single equations (assignments): 13 * 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 7.947e-05/0.119, allocations: 121.9 kB / 355.9 MB, free: 6.918 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.413e-05/0.119, allocations: 7.953 kB / 355.9 MB, free: 6.91 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.229e-05/0.1191, allocations: 8.375 kB / 355.9 MB, free: 6.898 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.1191, allocations: 8 kB / 355.9 MB, free: 6.891 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1191, allocations: 3.984 kB / 355.9 MB, free: 6.887 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1191, allocations: 0 / 355.9 MB, free: 6.887 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.1193, allocations: 185.7 kB / 356.1 MB, free: 6.656 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1193, allocations: 0 / 356.1 MB, free: 6.656 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.476e-05/0.1194, allocations: 23.92 kB / 356.1 MB, free: 6.633 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.1194, allocations: 0 / 356.1 MB, free: 6.633 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.1194, allocations: 15.95 kB / 356.2 MB, free: 6.617 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1194, allocations: 0 / 356.2 MB, free: 6.617 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1194, allocations: 0 / 356.2 MB, free: 6.617 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002048/0.1196, allocations: 183.5 kB / 356.3 MB, free: 6.422 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.787e-05/0.1197, allocations: 84.95 kB / 356.4 MB, free: 6.32 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.532e-05/0.1197, allocations: 0 / 356.4 MB, free: 6.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.389e-05/0.1198, allocations: 15.92 kB / 356.4 MB, free: 6.305 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.609e-05/0.1198, allocations: 8.047 kB / 356.4 MB, free: 6.297 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-06/0.1198, allocations: 4 kB / 356.4 MB, free: 6.293 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.542e-05/0.1199, allocations: 83.28 kB / 356.5 MB, free: 6.211 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1199, allocations: 0 / 356.5 MB, free: 6.211 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002351/0.1201, allocations: 20 kB / 356.5 MB, free: 6.191 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * 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 (8): * Single equations (assignments): 8 * 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.0004135/0.1205, allocations: 0.7358 MB / 357.3 MB, free: 5.43 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001163/0.1207, allocations: 59.92 kB / 357.3 MB, free: 5.371 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1207, allocations: 0 / 357.3 MB, free: 5.371 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.237e-05/0.1207, allocations: 23.94 kB / 357.4 MB, free: 5.348 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.121, allocations: 11.94 kB / 357.4 MB, free: 5.336 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009962/0.122, allocations: 0.6997 MB / 358.1 MB, free: 4.582 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.1223, allocations: 0.6965 MB / 358.8 MB, free: 3.859 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.866e-05/0.1223, allocations: 7.984 kB / 358.8 MB, free: 3.852 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.445e-05/0.1224, allocations: 15.44 kB / 358.8 MB, free: 3.836 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1224, allocations: 3.938 kB / 358.8 MB, free: 3.832 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01094/0.1333, allocations: 1.545 MB / 360.3 MB, free: 2.414 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/0.1335, allocations: 190.5 kB / 360.5 MB, free: 2.172 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.784/1.918, allocations: 2.953 kB / 360.5 MB, free: 2.172 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat