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.0009213/0.0009213, allocations: 96.27 kB / 17 MB, free: 6.402 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.0008465/0.0008466, allocations: 179.5 kB / 17.89 MB, free: 5.945 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.352/1.352, allocations: 223.2 MB / 241.9 MB, free: 340 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.2039/0.2039, allocations: 44.22 MB / 337.2 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004323/0.0004323, allocations: 8.781 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1401, allocations: 61.93 MB / 471.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005741/0.1407, allocations: 210.9 kB / 471.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004573/0.1412, allocations: 193.3 kB / 472 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.567e-05/0.1412, allocations: 4 kB / 472 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.508e-06/0.1412, allocations: 0 / 472 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.212e-06/0.1412, allocations: 0 / 472 MB, free: 13.24 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.0002283/0.1415, allocations: 35.91 kB / 472.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.667e-05/0.1415, allocations: 0 / 472.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.613e-05/0.1416, allocations: 0 / 472.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.638e-05/0.1416, allocations: 11.94 kB / 472.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.289e-05/0.1416, allocations: 3.984 kB / 472.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.032e-06/0.1416, allocations: 0 / 472.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.1418, allocations: 43.95 kB / 472.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.199e-06/0.1418, allocations: 0 / 472.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.751e-05/0.1418, allocations: 25.7 kB / 472.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.886e-05/0.1419, allocations: 31.95 kB / 472.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1419, allocations: 0 / 472.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1419, allocations: 0 / 472.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.386e-06/0.1419, allocations: 0 / 472.2 MB, free: 13.08 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.0002864/0.1422, allocations: 353.1 kB / 472.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.1423, allocations: 12.03 kB / 472.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.849e-05/0.1423, allocations: 34.56 kB / 472.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.008e-05/0.1423, allocations: 0 / 472.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.8e-05/0.1424, allocations: 159.1 kB / 472.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-06/0.1424, allocations: 0 / 472.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.798e-05/0.1425, allocations: 11.94 kB / 472.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.584e-05/0.1425, allocations: 33.62 kB / 472.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.239e-06/0.1426, allocations: 0 / 472.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.241e-06/0.1426, allocations: 4 kB / 472.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.1426, allocations: 3.938 kB / 472.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.651e-05/0.1426, allocations: 4 kB / 472.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001346/0.1427, allocations: 141.7 kB / 472.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.901e-05/0.1428, allocations: 26.59 kB / 473 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.378e-05/0.1428, allocations: 4.859 kB / 473 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.179e-06/0.1428, allocations: 0 / 473 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.431e-05/0.1429, allocations: 68.16 kB / 473 MB, free: 12.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.1429, allocations: 0 / 473 MB, free: 12.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001459/0.143, allocations: 59.47 kB / 473.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/0.1431, allocations: 85.09 kB / 473.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.175e-05/0.1431, allocations: 93.86 kB / 473.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.1432, allocations: 25.7 kB / 473.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.301e-05/0.1432, allocations: 80.14 kB / 473.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.1432, allocations: 0 / 473.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-06/0.1432, allocations: 128 / 473.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1433, allocations: 314.8 kB / 473.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.384e-06/0.1434, allocations: 0 / 473.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.955e-06/0.1434, allocations: 7.938 kB / 473.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.767e-05/0.1434, allocations: 25.7 kB / 473.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1434, allocations: 0 / 473.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.662e-05/0.1435, allocations: 67.39 kB / 473.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.1435, allocations: 33.64 kB / 473.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.1435, allocations: 3.953 kB / 473.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.1436, allocations: 4.094 kB / 473.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.32e-07/0.1436, allocations: 4 kB / 473.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.1436, allocations: 4 kB / 473.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.491e-05/0.1436, allocations: 0 / 473.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.1436, allocations: 0 / 473.8 MB, free: 11.18 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 7.51e-05/0.1437, allocations: 136.1 kB / 474 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.907e-06/0.1437, allocations: 3.984 kB / 474 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.247e-06/0.1437, allocations: 7.078 kB / 474 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1437, allocations: 3.953 kB / 474 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.1437, allocations: 4 kB / 474 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.1437, allocations: 0 / 474 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.041e-05/0.1438, allocations: 145.7 kB / 474.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1438, allocations: 0 / 474.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1439, allocations: 0 / 474.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.1439, allocations: 3.984 kB / 474.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.1439, allocations: 3.938 kB / 474.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.1439, allocations: 0 / 474.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1439, allocations: 3.953 kB / 474.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.329e-05/0.144, allocations: 94.84 kB / 474.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.764e-05/0.144, allocations: 89.22 kB / 474.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.144, allocations: 4 kB / 474.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.187e-06/0.1441, allocations: 0 / 474.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.398e-05/0.1441, allocations: 3.953 kB / 474.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-06/0.1441, allocations: 0 / 474.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.913e-05/0.1442, allocations: 75.28 kB / 474.4 MB, free: 10.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1442, allocations: 0 / 474.4 MB, free: 10.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002011/0.1444, allocations: 16 kB / 474.4 MB, free: 10.49 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.0006506/0.145, allocations: 0.7431 MB / 475.1 MB, free: 9.754 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.875e-05/0.1451, allocations: 55.41 kB / 475.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1451, allocations: 0 / 475.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.424e-05/0.1452, allocations: 63.45 kB / 475.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.1453, allocations: 0 / 475.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002838/0.1456, allocations: 116.4 kB / 475.4 MB, free: 9.457 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.1458, allocations: 0.6731 MB / 476 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.225e-06/0.1459, allocations: 8 kB / 476.1 MB, free: 8.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.181e-05/0.1459, allocations: 7.438 kB / 476.1 MB, free: 8.742 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1459, allocations: 0 / 476.1 MB, free: 8.742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0117/0.1576, allocations: 1.18 MB / 477.2 MB, free: 7.668 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002472/0.1579, allocations: 215 kB / 477.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/1.945, allocations: 0 / 477.5 MB, free: 7.434 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