Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001537/0.001537, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.009/2.009, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001122/0.001121, allocations: 102.5 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5137/0.5137, allocations: 43.55 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004866/0.0004867, allocations: 8 kB / 431.5 MB, free: 6.059 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1334, allocations: 58.83 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4721/0.6056, allocations: 84.56 MB / 0.5614 GB, free: 1.988 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.6058, allocations: 63.97 kB / 0.5614 GB, free: 1.926 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008142/0.614, allocations: 1.426 MB / 0.5628 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.989e-06/0.6141, allocations: 0 / 0.5628 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.6141, allocations: 0 / 0.5628 GB, free: 0.5156 MB / 378.7 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.0004096/0.6145, allocations: 361.1 kB / 0.5632 GB, free: 112 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.54e-05/0.6146, allocations: 8.719 kB / 0.5632 GB, free: 104 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.265e-05/0.6147, allocations: 30.56 kB / 0.5632 GB, free: 64 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.412e-05/0.6148, allocations: 9.016 kB / 0.5632 GB, free: 60 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001973/0.615, allocations: 161.7 kB / 0.5634 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.6151, allocations: 6.969 kB / 0.5634 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.777e-05/0.6151, allocations: 3.984 kB / 0.5634 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001689/0.6153, allocations: 29.64 kB / 0.5634 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.6153, allocations: 0 / 0.5634 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.6154, allocations: 4 kB / 0.5634 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.6154, allocations: 0 / 0.5634 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.042e-05/0.6154, allocations: 1.031 kB / 0.5634 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002617/0.6157, allocations: 157.6 kB / 0.5636 GB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.106e-05/0.6158, allocations: 18.61 kB / 0.5636 GB, free: 15.59 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.845e-06/0.6158, allocations: 1.219 kB / 0.5636 GB, free: 15.59 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.948e-05/0.6159, allocations: 56.27 kB / 0.5637 GB, free: 15.52 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 3.637e-06/0.616, allocations: 0 / 0.5637 GB, free: 15.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0003248/0.6163, allocations: 71.39 kB / 0.5637 GB, free: 15.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.6164, allocations: 81.23 kB / 0.5638 GB, free: 15.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.169e-05/0.6165, allocations: 85 kB / 0.5639 GB, free: 15.25 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/0.6166, allocations: 32.77 kB / 0.5639 GB, free: 15.21 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.443e-05/0.6167, allocations: 150.6 kB / 0.5641 GB, free: 15.06 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.797e-05/0.6168, allocations: 0.9375 kB / 0.5641 GB, free: 15.06 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.568e-06/0.6168, allocations: 0 / 0.5641 GB, free: 15.06 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002032/0.617, allocations: 310.8 kB / 0.5644 GB, free: 14.75 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.284e-05/0.617, allocations: 0 / 0.5644 GB, free: 14.75 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.538e-05/0.6171, allocations: 4 kB / 0.5644 GB, free: 14.75 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.168e-05/0.6171, allocations: 32.58 kB / 0.5644 GB, free: 14.71 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.6172, allocations: 0 / 0.5644 GB, free: 14.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001721/0.6173, allocations: 75.28 kB / 0.5645 GB, free: 14.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.605e-05/0.6174, allocations: 29.7 kB / 0.5645 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.6174, allocations: 0 / 0.5645 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.6175, allocations: 0 / 0.5645 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.034e-06/0.6175, allocations: 0 / 0.5645 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.6175, allocations: 5.406 kB / 0.5645 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3e-05/0.6176, allocations: 0 / 0.5645 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.6176, allocations: 4.031 kB / 0.5645 GB, free: 14.58 MB / 394.7 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.0001486/0.6177, allocations: 143.5 kB / 0.5646 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.781e-05/0.6178, allocations: 3.953 kB / 0.5646 GB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.739e-05/0.6178, allocations: 3.125 kB / 0.5646 GB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.6178, allocations: 0 / 0.5646 GB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.6178, allocations: 0 / 0.5646 GB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.6178, allocations: 0 / 0.5646 GB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.6181, allocations: 151.8 kB / 0.5648 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.014e-06/0.6181, allocations: 3.984 kB / 0.5648 GB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.054e-06/0.6181, allocations: 0 / 0.5648 GB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.287e-06/0.6181, allocations: 7.953 kB / 0.5648 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.6182, allocations: 0 / 0.5648 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.6182, allocations: 0.5469 kB / 0.5648 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.6182, allocations: 0 / 0.5648 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002734/0.6185, allocations: 96.8 kB / 0.5649 GB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.71e-05/0.6186, allocations: 77.11 kB / 0.565 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.963e-05/0.6187, allocations: 3.953 kB / 0.565 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.99e-05/0.6187, allocations: 8.688 kB / 0.565 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.903e-05/0.6187, allocations: 0 / 0.565 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.6188, allocations: 0 / 0.565 GB, free: 13.99 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.76e-05/0.6189, allocations: 75.28 kB / 0.565 GB, free: 13.92 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.6189, allocations: 0.9375 kB / 0.565 GB, free: 13.92 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006272/0.6195, allocations: 16 kB / 0.5651 GB, free: 13.9 MB / 394.7 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.001393/0.6209, allocations: 0.7417 MB / 0.5658 GB, free: 13.18 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001832/0.6212, allocations: 59.44 kB / 0.5658 GB, free: 13.11 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.6212, allocations: 0 / 0.5658 GB, free: 13.11 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.907e-05/0.6213, allocations: 59.39 kB / 0.5659 GB, free: 13.04 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001582/0.6215, allocations: 6.766 kB / 0.5659 GB, free: 13.04 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004788/0.622, allocations: 140.9 kB / 0.566 GB, free: 12.85 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.6223, allocations: 0.6749 MB / 0.5667 GB, free: 12.15 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.073e-05/0.6223, allocations: 7.438 kB / 0.5667 GB, free: 12.14 MB / 394.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6223, allocations: 4.062 kB / 0.5667 GB, free: 12.14 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.493/3.116, allocations: 0.9179 MB / 0.5676 GB, free: 11.23 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat