Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.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.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",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.0009549/0.0009549, allocations: 96.47 kB / 16.98 MB, free: 5.938 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.0009518/0.0009518, allocations: 184.3 kB / 17.87 MB, free: 5.594 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.32/1.32, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2152/0.2152, allocations: 44.23 MB / 337.1 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003487/0.0003487, allocations: 8 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1236, allocations: 61.92 MB / 471.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005842/0.1242, allocations: 203 kB / 471.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004952/0.1247, allocations: 205.6 kB / 471.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.596e-05/0.1247, allocations: 0 / 471.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.457e-05/0.1248, allocations: 0 / 471.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.813e-06/0.1248, allocations: 4 kB / 471.9 MB, free: 13.25 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321:16:writable] Warning: Pure function ‘ModelicaTest.Utilities.WriteFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.125, allocations: 35.89 kB / 472 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.705e-05/0.1251, allocations: 3.938 kB / 472 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.481e-05/0.1251, allocations: 0 / 472 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.48e-05/0.1252, allocations: 0 / 472 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.194e-05/0.1252, allocations: 4 kB / 472 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.172e-06/0.1252, allocations: 0 / 472 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001283/0.1253, allocations: 35.95 kB / 472 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.803e-06/0.1254, allocations: 4 kB / 472 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.941e-05/0.1254, allocations: 25.7 kB / 472 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.733e-05/0.1255, allocations: 35.95 kB / 472.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.1255, allocations: 0 / 472.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1255, allocations: 0 / 472.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.1255, allocations: 0 / 472.1 MB, free: 13.1 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.0004092/0.1259, allocations: 349.1 kB / 472.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.126, allocations: 12.03 kB / 472.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.084e-05/0.126, allocations: 34.5 kB / 472.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.285e-05/0.126, allocations: 4 kB / 472.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.1262, allocations: 159.1 kB / 472.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.1262, allocations: 0 / 472.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.946e-06/0.1262, allocations: 3.953 kB / 472.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.817e-05/0.1263, allocations: 37.62 kB / 472.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.1263, allocations: 0 / 472.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.435e-06/0.1263, allocations: 0 / 472.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1264, allocations: 0 / 472.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.948e-05/0.1264, allocations: 8 kB / 472.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001693/0.1266, allocations: 145.7 kB / 472.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.723e-05/0.1266, allocations: 14.58 kB / 472.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.1266, allocations: 4.094 kB / 472.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.849e-05/0.1267, allocations: 64.16 kB / 472.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1267, allocations: 0 / 472.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001706/0.1268, allocations: 67.39 kB / 473 MB, free: 12.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.134e-05/0.1269, allocations: 77.11 kB / 473 MB, free: 11.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.018e-05/0.127, allocations: 93.98 kB / 473.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.127, allocations: 25.7 kB / 473.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.091e-05/0.127, allocations: 80.14 kB / 473.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.42e-05/0.1271, allocations: 0 / 473.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-06/0.1271, allocations: 4 kB / 473.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.1272, allocations: 310.8 kB / 473.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.278e-05/0.1272, allocations: 7.984 kB / 473.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.799e-06/0.1272, allocations: 0 / 473.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.322e-05/0.1273, allocations: 37.7 kB / 473.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.1273, allocations: 0 / 473.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.337e-05/0.1274, allocations: 59.34 kB / 473.6 MB, free: 11.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.812e-05/0.1274, allocations: 33.7 kB / 473.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1274, allocations: 0 / 473.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.1274, allocations: 7.938 kB / 473.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.1274, allocations: 0 / 473.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.1274, allocations: 0 / 473.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.501e-05/0.1275, allocations: 0 / 473.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.407e-06/0.1275, allocations: 4 kB / 473.7 MB, free: 11.23 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 8.858e-05/0.1276, allocations: 136.1 kB / 473.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.717e-06/0.1276, allocations: 4 kB / 473.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.249e-05/0.1276, allocations: 11.08 kB / 473.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1276, allocations: 3.953 kB / 473.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1276, allocations: 0 / 473.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1276, allocations: 0 / 473.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001092/0.1277, allocations: 145.7 kB / 474 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.1278, allocations: 7.922 kB / 474 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.1278, allocations: 0 / 474 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.1278, allocations: 4 kB / 474 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.1278, allocations: 4 kB / 474 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1278, allocations: 4 kB / 474 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1278, allocations: 7.891 kB / 474 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001062/0.1279, allocations: 90.83 kB / 474.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.345e-05/0.128, allocations: 81.3 kB / 474.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.303e-05/0.128, allocations: 0 / 474.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.797e-06/0.128, allocations: 0 / 474.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.634e-05/0.128, allocations: 8.031 kB / 474.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.128, allocations: 3.953 kB / 474.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.616e-05/0.1281, allocations: 75.28 kB / 474.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1281, allocations: 0 / 474.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002219/0.1283, allocations: 19.98 kB / 474.3 MB, free: 10.52 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.0007617/0.1291, allocations: 0.7274 MB / 475 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.101e-05/0.1292, allocations: 55.41 kB / 475.1 MB, free: 9.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.1292, allocations: 4 kB / 475.1 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.492e-05/0.1292, allocations: 55.41 kB / 475.1 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.784e-05/0.1293, allocations: 7.656 kB / 475.1 MB, free: 9.656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002993/0.1296, allocations: 112.4 kB / 475.2 MB, free: 9.504 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.1299, allocations: 0.6772 MB / 475.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.951e-06/0.1299, allocations: 0 / 475.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.477e-05/0.1299, allocations: 7.438 kB / 475.9 MB, free: 8.793 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.13, allocations: 11.88 kB / 475.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01162/0.1416, allocations: 1.141 MB / 477.1 MB, free: 7.742 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002123/0.1419, allocations: 215 kB / 477.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.691/1.833, allocations: 0 / 477.3 MB, free: 7.5 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat