Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_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.0008043/0.0008043, allocations: 98.39 kB / 17.01 MB, free: 6.082 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.0008512/0.0008513, allocations: 182.1 kB / 17.89 MB, free: 5.664 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.366/1.366, allocations: 223.2 MB / 241.9 MB, free: 232 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.2029/0.2029, allocations: 44.23 MB / 337.2 MB, free: 2.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002886, allocations: 9.031 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1153, allocations: 61.93 MB / 471.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0005743/0.1159, allocations: 203 kB / 471.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.1172, allocations: 0.7439 MB / 472.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.127e-05/0.1172, allocations: 0 / 472.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.23e-05/0.1172, allocations: 0 / 472.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000144/0.1174, allocations: 4 kB / 472.6 MB, free: 12.7 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.ReadFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002838/0.1177, allocations: 43.89 kB / 472.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.722e-05/0.1177, allocations: 3.984 kB / 472.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.812e-05/0.1177, allocations: 0 / 472.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.972e-05/0.1178, allocations: 0 / 472.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.536e-05/0.1179, allocations: 7.938 kB / 472.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.255e-06/0.1179, allocations: 0 / 472.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/0.118, allocations: 47.95 kB / 472.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.442e-06/0.118, allocations: 8 kB / 472.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.204e-05/0.118, allocations: 25.7 kB / 472.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.173e-05/0.1181, allocations: 31.95 kB / 472.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1181, allocations: 0 / 472.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1181, allocations: 0 / 472.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.1182, allocations: 0 / 472.8 MB, free: 12.53 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003309/0.1185, allocations: 357.1 kB / 473.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1185, allocations: 8.031 kB / 473.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.184e-05/0.1186, allocations: 30.56 kB / 473.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.092e-05/0.1186, allocations: 4 kB / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.1187, allocations: 171 kB / 473.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.1187, allocations: 0 / 473.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.1188, allocations: 3.953 kB / 473.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.221e-05/0.1188, allocations: 29.7 kB / 473.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.1188, allocations: 0 / 473.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.194e-06/0.1189, allocations: 0 / 473.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.1189, allocations: 0 / 473.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.299e-05/0.1189, allocations: 0 / 473.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001486/0.119, allocations: 161.7 kB / 473.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.633e-05/0.1191, allocations: 18.52 kB / 473.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.218e-05/0.1191, allocations: 4.859 kB / 473.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.136e-06/0.1191, allocations: 4.094 kB / 473.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.432e-05/0.1192, allocations: 64.22 kB / 473.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.1192, allocations: 0 / 473.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001611/0.1193, allocations: 71.33 kB / 473.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.1194, allocations: 81.23 kB / 473.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.375e-05/0.1195, allocations: 93.86 kB / 473.8 MB, free: 11.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.1195, allocations: 25.7 kB / 473.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.853e-05/0.1195, allocations: 80.14 kB / 473.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/0.1195, allocations: 7.844 kB / 473.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.914e-06/0.1196, allocations: 0 / 473.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1197, allocations: 310.8 kB / 474.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.455e-05/0.1197, allocations: 12.11 kB / 474.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.428e-06/0.1197, allocations: 4 kB / 474.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.249e-05/0.1197, allocations: 25.7 kB / 474.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1197, allocations: 0 / 474.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.676e-05/0.1198, allocations: 59.41 kB / 474.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.228e-05/0.1199, allocations: 41.59 kB / 474.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1199, allocations: 0 / 474.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.1199, allocations: 3.984 kB / 474.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.1199, allocations: 0 / 474.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.311e-06/0.1199, allocations: 0 / 474.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.45e-05/0.1199, allocations: 4.375 kB / 474.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.1199, allocations: 0 / 474.4 MB, free: 10.62 MB / 350.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 9.428e-05/0.12, allocations: 140.1 kB / 474.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.864e-06/0.12, allocations: 0 / 474.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.071e-05/0.1201, allocations: 14.97 kB / 474.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1201, allocations: 4 kB / 474.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1201, allocations: 0 / 474.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1201, allocations: 0 / 474.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001005/0.1202, allocations: 149.6 kB / 474.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1202, allocations: 4 kB / 474.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1202, allocations: 0 / 474.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.1202, allocations: 0 / 474.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.1202, allocations: 4 kB / 474.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.1202, allocations: 3.953 kB / 474.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1202, allocations: 3.984 kB / 474.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.438e-05/0.1203, allocations: 90.83 kB / 474.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.302e-05/0.1204, allocations: 77.11 kB / 474.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.147e-05/0.1204, allocations: 4.031 kB / 474.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.004e-05/0.1204, allocations: 0 / 474.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.625e-05/0.1204, allocations: 11.94 kB / 474.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.1204, allocations: 0 / 474.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.658e-05/0.1205, allocations: 75.28 kB / 475 MB, free: 9.938 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.023e-06/0.1205, allocations: 0 / 475 MB, free: 9.938 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002235/0.1207, allocations: 27.94 kB / 475 MB, free: 9.91 MB / 350.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.0005822/0.1213, allocations: 0.7229 MB / 475.7 MB, free: 9.188 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.356e-05/0.1214, allocations: 67.39 kB / 475.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.1214, allocations: 0 / 475.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.739e-05/0.1214, allocations: 55.34 kB / 475.8 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001212/0.1215, allocations: 7.953 kB / 475.8 MB, free: 9.035 MB / 350.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+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.0003418/0.1219, allocations: 120.5 kB / 476 MB, free: 8.875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.1221, allocations: 0.6731 MB / 476.6 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.095e-06/0.1221, allocations: 0 / 476.6 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.576e-05/0.1222, allocations: 7.438 kB / 476.6 MB, free: 8.168 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1222, allocations: 0 / 476.6 MB, free: 8.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1096/0.2318, allocations: 1.231 MB / 477.9 MB, free: 7.043 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000187/0.232, allocations: 222.4 kB / 478.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/2.004, allocations: 3.938 kB / 478.1 MB, free: 6.797 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat does not exist to compare? outputFormat=mat