Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestReadFile",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.0008829/0.0008827, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000849/0.000849, allocations: 175.8 kB / 16.58 MB, free: 6.84 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.485/1.485, allocations: 205.4 MB / 222.8 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3161/0.3161, allocations: 43.55 MB / 314.6 MB, free: 8.996 MB / 254.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.0004946/0.0004947, allocations: 12 kB / 384 MB, free: 8.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1038, allocations: 58.86 MB / 442.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0006856/0.1046, allocations: 224.4 kB / 443.1 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.1058, allocations: 0.7299 MB / 443.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.409e-05/0.1059, allocations: 0 / 443.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.285e-05/0.1059, allocations: 0 / 443.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.1061, allocations: 4 kB / 443.8 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.1063, allocations: 43.89 kB / 443.9 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.812e-05/0.1064, allocations: 7.984 kB / 443.9 MB, free: 12.19 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.684e-05/0.1064, allocations: 0 / 443.9 MB, free: 12.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.319e-05/0.1065, allocations: 11.94 kB / 443.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.964e-05/0.1066, allocations: 3.984 kB / 443.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.935e-06/0.1066, allocations: 0 / 443.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001146/0.1067, allocations: 51.97 kB / 443.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.882e-06/0.1067, allocations: 0 / 443.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.416e-05/0.1068, allocations: 25.7 kB / 444 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.397e-05/0.1069, allocations: 31.94 kB / 444 MB, free: 12.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1069, allocations: 0 / 444 MB, free: 12.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1069, allocations: 0 / 444 MB, free: 12.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.1069, allocations: 0 / 444 MB, free: 12.06 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003955/0.1073, allocations: 357 kB / 444.3 MB, free: 11.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.1073, allocations: 8.031 kB / 444.4 MB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.831e-05/0.1074, allocations: 42.38 kB / 444.4 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.851e-05/0.1074, allocations: 7.953 kB / 444.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.1076, allocations: 163.1 kB / 444.6 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.1076, allocations: 0 / 444.6 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.855e-06/0.1076, allocations: 0 / 444.6 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.873e-05/0.1077, allocations: 37.69 kB / 444.6 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.1077, allocations: 3.984 kB / 444.6 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.497e-06/0.1077, allocations: 0 / 444.6 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.1077, allocations: 4 kB / 444.6 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.739e-05/0.1078, allocations: 0 / 444.6 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001568/0.1079, allocations: 149.9 kB / 444.8 MB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4e-05/0.108, allocations: 18.52 kB / 444.8 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.438e-05/0.108, allocations: 12.94 kB / 444.8 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.887e-06/0.108, allocations: 0 / 444.8 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.359e-05/0.1081, allocations: 64.27 kB / 444.8 MB, free: 11.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.1081, allocations: 0 / 444.8 MB, free: 11.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002221/0.1083, allocations: 59.41 kB / 444.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.458e-05/0.1084, allocations: 81.05 kB / 445 MB, free: 10.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.1085, allocations: 101.8 kB / 445.1 MB, free: 10.75 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.1085, allocations: 25.7 kB / 445.1 MB, free: 10.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.648e-05/0.1086, allocations: 80.14 kB / 445.2 MB, free: 10.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.562e-05/0.1086, allocations: 3.938 kB / 445.2 MB, free: 10.63 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-06/0.1086, allocations: 256 / 445.2 MB, free: 10.63 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002091/0.1088, allocations: 318.8 kB / 445.5 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.849e-06/0.1089, allocations: 4 kB / 445.5 MB, free: 10.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.749e-06/0.1089, allocations: 0 / 445.5 MB, free: 10.31 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.8e-05/0.1089, allocations: 25.7 kB / 445.5 MB, free: 10.28 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1089, allocations: 0 / 445.5 MB, free: 10.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.894e-05/0.109, allocations: 67.39 kB / 445.6 MB, free: 10.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.113e-05/0.109, allocations: 33.7 kB / 445.6 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.109, allocations: 0 / 445.6 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.1091, allocations: 4.094 kB / 445.6 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.543e-06/0.1091, allocations: 0 / 445.6 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.1091, allocations: 0 / 445.6 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.767e-05/0.1091, allocations: 3.938 kB / 445.6 MB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.1091, allocations: 4 kB / 445.6 MB, free: 10.15 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001112/0.1092, allocations: 147.4 kB / 445.8 MB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.552e-06/0.1093, allocations: 0 / 445.8 MB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.535e-05/0.1093, allocations: 7.125 kB / 445.8 MB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.1093, allocations: 0 / 445.8 MB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1093, allocations: 4 kB / 445.8 MB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1093, allocations: 0 / 445.8 MB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.1094, allocations: 149.6 kB / 445.9 MB, free: 9.781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.676e-06/0.1094, allocations: 3.984 kB / 445.9 MB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.82e-07/0.1094, allocations: 0 / 445.9 MB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.1094, allocations: 4 kB / 446 MB, free: 9.773 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.1094, allocations: 0 / 446 MB, free: 9.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1095, allocations: 0 / 446 MB, free: 9.773 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.1095, allocations: 4 kB / 446 MB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.831e-05/0.1096, allocations: 102.8 kB / 446.1 MB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.334e-05/0.1096, allocations: 81.02 kB / 446.1 MB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.1096, allocations: 0 / 446.1 MB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.303e-05/0.1097, allocations: 4 kB / 446.1 MB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.621e-05/0.1097, allocations: 3.938 kB / 446.1 MB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.1097, allocations: 0 / 446.1 MB, free: 9.539 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.37e-05/0.1097, allocations: 75.28 kB / 446.2 MB, free: 9.465 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1097, allocations: 0 / 446.2 MB, free: 9.465 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002394/0.11, allocations: 28.11 kB / 446.2 MB, free: 9.438 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0005798/0.1106, allocations: 0.703 MB / 446.9 MB, free: 8.715 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.501e-05/0.1107, allocations: 59.41 kB / 447 MB, free: 8.645 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1107, allocations: 0 / 447 MB, free: 8.645 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.548e-05/0.1107, allocations: 55.34 kB / 447.1 MB, free: 8.578 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.1108, allocations: 7.281 kB / 447.1 MB, free: 8.574 MB / 382.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003245/0.1112, allocations: 132.4 kB / 447.2 MB, free: 8.402 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.1115, allocations: 0.6692 MB / 447.9 MB, free: 7.707 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.514e-06/0.1115, allocations: 4 kB / 447.9 MB, free: 7.703 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.691e-05/0.1115, allocations: 7.438 kB / 447.9 MB, free: 7.695 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1115, allocations: 0 / 447.9 MB, free: 7.695 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07198/0.1835, allocations: 1.233 MB / 449.1 MB, free: 6.488 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001703/0.1837, allocations: 209.1 kB / 449.3 MB, free: 6.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.689/1.873, allocations: 0 / 449.3 MB, free: 6.25 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile_res.mat does not exist to compare? outputFormat=mat