Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000814/0.000814, allocations: 98.2 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009881/0.0009881, allocations: 192.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003318/0.0003318, allocations: 4 kB / 306.8 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0987/0.09905, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001703/0.1008, allocations: 1.324 MB / 359.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009031/0.1018, allocations: 0.5224 MB / 360.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.725e-05/0.1018, allocations: 0 / 360.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.092e-05/0.1019, allocations: 11.92 kB / 360.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.097e-05/0.1019, allocations: 23.83 kB / 360.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001605/0.1021, allocations: 23.92 kB / 360.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001045/0.1022, allocations: 91.53 kB / 360.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.1023, allocations: 31.91 kB / 360.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.66e-05/0.1024, allocations: 27.92 kB / 360.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.027e-05/0.1025, allocations: 27.92 kB / 360.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.558e-05/0.1025, allocations: 8 kB / 360.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.577e-05/0.1025, allocations: 19.92 kB / 360.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.525e-05/0.1026, allocations: 11.98 kB / 360.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.293e-05/0.1026, allocations: 41.64 kB / 360.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.1027, allocations: 72.08 kB / 360.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1027, allocations: 0 / 360.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1027, allocations: 0 / 360.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.1027, allocations: 4 kB / 360.5 MB, free: 11.52 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.000397/0.1031, allocations: 371.1 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.1032, allocations: 15.97 kB / 360.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.569e-05/0.1032, allocations: 38.56 kB / 360.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.1034, allocations: 12 kB / 361 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002231/0.1036, allocations: 174.8 kB / 361.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.1036, allocations: 7.953 kB / 361.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.261e-05/0.1037, allocations: 12 kB / 361.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00015/0.1038, allocations: 77.67 kB / 361.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.1038, allocations: 0 / 361.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.1038, allocations: 0 / 361.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1039, allocations: 4 kB / 361.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001066/0.104, allocations: 59.92 kB / 361.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006645/0.1046, allocations: 404.6 kB / 361.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000131/0.1048, allocations: 70.5 kB / 361.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.468e-05/0.1049, allocations: 37 kB / 361.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.035e-05/0.1049, allocations: 0 / 361.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.1049, allocations: 38.55 kB / 361.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.002e-06/0.1049, allocations: 0 / 361.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001909/0.1051, allocations: 81.69 kB / 361.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.514e-05/0.1051, allocations: 51.41 kB / 362 MB, free: 9.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.1053, allocations: 117.7 kB / 362.1 MB, free: 9.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.1053, allocations: 25.7 kB / 362.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.548e-05/0.1054, allocations: 107.9 kB / 362.2 MB, free: 9.637 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.818e-05/0.1054, allocations: 31.55 kB / 362.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.157e-06/0.1054, allocations: 0 / 362.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1056, allocations: 322.8 kB / 362.5 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.04e-05/0.1056, allocations: 23.98 kB / 362.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.785e-05/0.1057, allocations: 38.56 kB / 362.6 MB, free: 9.211 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.33e-05/0.1057, allocations: 32 kB / 362.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.1058, allocations: 0 / 362.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000255/0.106, allocations: 105.5 kB / 362.7 MB, free: 9.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.1061, allocations: 11.94 kB / 362.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.1061, allocations: 0 / 362.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.1061, allocations: 0 / 362.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.1062, allocations: 27.92 kB / 362.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.1062, allocations: 4 kB / 362.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.659e-05/0.1063, allocations: 11.97 kB / 362.8 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.1063, allocations: 4 kB / 362.8 MB, free: 9.012 MB / 302.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 8.86e-05/0.1064, allocations: 122.9 kB / 362.9 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.465e-05/0.1064, allocations: 3.984 kB / 362.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.028e-05/0.1064, allocations: 8.375 kB / 362.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1065, allocations: 4 kB / 362.9 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.1065, allocations: 0 / 362.9 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.1065, allocations: 0 / 362.9 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002025/0.1067, allocations: 197.4 kB / 363.1 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1067, allocations: 4 kB / 363.1 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.735e-05/0.1068, allocations: 23.94 kB / 363.2 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.1068, allocations: 0 / 363.2 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.1068, allocations: 4 kB / 363.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.1068, allocations: 8.234 kB / 363.2 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1068, allocations: 0 / 363.2 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002021/0.107, allocations: 187.5 kB / 363.3 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.808e-05/0.1071, allocations: 85 kB / 363.4 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.1071, allocations: 8.094 kB / 363.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.656e-05/0.1072, allocations: 4 kB / 363.4 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.797e-05/0.1072, allocations: 4 kB / 363.4 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.1072, allocations: 0 / 363.4 MB, free: 8.266 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.813e-05/0.1073, allocations: 87.52 kB / 363.5 MB, free: 8.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1073, allocations: 0 / 363.5 MB, free: 8.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002335/0.1075, allocations: 24 kB / 363.6 MB, free: 8.156 MB / 302.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.0005678/0.1081, allocations: 0.7357 MB / 364.3 MB, free: 7.395 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002353/0.1083, allocations: 55.92 kB / 364.3 MB, free: 7.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1083, allocations: 0 / 364.3 MB, free: 7.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.389e-05/0.1084, allocations: 27.92 kB / 364.4 MB, free: 7.312 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.1086, allocations: 4 kB / 364.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/0.1097, allocations: 0.7038 MB / 365.1 MB, free: 6.547 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.11, allocations: 0.7004 MB / 365.8 MB, free: 5.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.54e-05/0.11, allocations: 3.953 kB / 365.8 MB, free: 5.816 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.717e-05/0.1101, allocations: 27.42 kB / 365.8 MB, free: 5.789 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1101, allocations: 0 / 365.8 MB, free: 5.789 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01301/0.1231, allocations: 1.534 MB / 367.3 MB, free: 4.387 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003696/0.1235, allocations: 186.2 kB / 367.5 MB, free: 4.141 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/1.935, allocations: 4.062 kB / 367.5 MB, free: 4.137 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat