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.002205/0.002205, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.175/2.175, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001137/0.001136, allocations: 82.67 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3751/0.3751, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.413e-05/3.427e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1186, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4989/0.6175, allocations: 84.47 MB / 0.5554 GB, free: 3.035 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.6178, allocations: 65.06 kB / 0.5554 GB, free: 3.008 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007631/0.6255, allocations: 1.417 MB / 0.5568 GB, free: 1.781 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.6255, allocations: 2.812 kB / 0.5568 GB, free: 1.781 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.737e-05/0.6256, allocations: 0 / 0.5568 GB, free: 1.781 MB / 362.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.0003377/0.6259, allocations: 352.2 kB / 0.5572 GB, free: 1.387 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.142e-05/0.626, allocations: 12.03 kB / 0.5572 GB, free: 1.375 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.338e-05/0.6261, allocations: 30.56 kB / 0.5572 GB, free: 1.336 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.086e-05/0.6261, allocations: 7.125 kB / 0.5572 GB, free: 1.332 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/0.6263, allocations: 165.6 kB / 0.5574 GB, free: 1.133 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.6263, allocations: 2.969 kB / 0.5574 GB, free: 1.133 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.6263, allocations: 0 / 0.5574 GB, free: 1.133 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001127/0.6265, allocations: 37.62 kB / 0.5574 GB, free: 1.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.6265, allocations: 3.984 kB / 0.5574 GB, free: 1.086 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.6265, allocations: 0 / 0.5574 GB, free: 1.086 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.6265, allocations: 0 / 0.5574 GB, free: 1.086 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.18e-05/0.6266, allocations: 4 kB / 0.5574 GB, free: 1.082 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001792/0.6268, allocations: 152.8 kB / 0.5576 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.702e-05/0.6269, allocations: 14.58 kB / 0.5576 GB, free: 0.8633 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.66e-05/0.6269, allocations: 8.953 kB / 0.5576 GB, free: 0.8516 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.136e-05/0.627, allocations: 0 / 0.5576 GB, free: 0.8516 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.357e-05/0.627, allocations: 64.19 kB / 0.5576 GB, free: 0.7734 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 2.685e-06/0.627, allocations: 0 / 0.5576 GB, free: 0.7734 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002618/0.6273, allocations: 67.34 kB / 0.5577 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.6274, allocations: 77.11 kB / 0.5578 GB, free: 0.6055 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.861e-05/0.6274, allocations: 85 kB / 0.5579 GB, free: 0.5156 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.276e-05/0.6275, allocations: 25.7 kB / 0.5579 GB, free: 496 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.019e-05/0.6275, allocations: 150.6 kB / 0.558 GB, free: 344 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.82e-05/0.6276, allocations: 0 / 0.558 GB, free: 344 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/0.6276, allocations: 4 kB / 0.558 GB, free: 340 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.089e-05/0.6277, allocations: 310.8 kB / 0.5583 GB, free: 20 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.616e-05/0.6277, allocations: 7.641 kB / 0.5583 GB, free: 16 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.356e-05/0.6277, allocations: 3.984 kB / 0.5583 GB, free: 12 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.603e-05/0.6278, allocations: 29.7 kB / 0.5584 GB, free: 15.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.6279, allocations: 3.953 kB / 0.5584 GB, free: 15.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000181/0.6281, allocations: 66.97 kB / 0.5584 GB, free: 15.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.224e-05/0.6282, allocations: 33.14 kB / 0.5585 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.6282, allocations: 0.625 kB / 0.5585 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.6282, allocations: 0 / 0.5585 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.836e-06/0.6282, allocations: 0 / 0.5585 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.461e-05/0.6283, allocations: 8.078 kB / 0.5585 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.103e-05/0.6283, allocations: 0.875 kB / 0.5585 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.6284, allocations: 4 kB / 0.5585 GB, free: 15.85 MB / 378.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 () * 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.0001425/0.6285, allocations: 126.7 kB / 0.5586 GB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.728e-05/0.6286, allocations: 3.953 kB / 0.5586 GB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.154e-05/0.6286, allocations: 7.125 kB / 0.5586 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-06/0.6286, allocations: 0 / 0.5586 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.6286, allocations: 0 / 0.5586 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.6287, allocations: 0 / 0.5586 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001524/0.6288, allocations: 149.7 kB / 0.5587 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.6288, allocations: 7.938 kB / 0.5588 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.787e-06/0.6289, allocations: 3.953 kB / 0.5588 GB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.6289, allocations: 4 kB / 0.5588 GB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.6289, allocations: 3.312 kB / 0.5588 GB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.6289, allocations: 0 / 0.5588 GB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.6289, allocations: 0 / 0.5588 GB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001804/0.6291, allocations: 94.7 kB / 0.5589 GB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.69e-05/0.6292, allocations: 81.14 kB / 0.5589 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.6292, allocations: 3.953 kB / 0.5589 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.856e-05/0.6293, allocations: 0 / 0.5589 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.595e-05/0.6293, allocations: 4 kB / 0.5589 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.6293, allocations: 0 / 0.5589 GB, free: 15.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.69e-05/0.6294, allocations: 75.28 kB / 0.559 GB, free: 15.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.107e-06/0.6294, allocations: 0 / 0.559 GB, free: 15.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006542/0.6301, allocations: 23.92 kB / 0.559 GB, free: 15.17 MB / 378.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) * 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.001374/0.6315, allocations: 0.7287 MB / 0.5597 GB, free: 14.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001326/0.6316, allocations: 55.41 kB / 0.5598 GB, free: 14.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.6317, allocations: 0 / 0.5598 GB, free: 14.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.39e-05/0.6317, allocations: 63.38 kB / 0.5599 GB, free: 14.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001645/0.6319, allocations: 6.891 kB / 0.5599 GB, free: 14.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005065/0.6324, allocations: 112.3 kB / 0.56 GB, free: 14.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003773/0.6328, allocations: 0.675 MB / 0.5606 GB, free: 13.44 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.571e-05/0.6329, allocations: 11.44 kB / 0.5606 GB, free: 13.43 MB / 378.7 MB Notification: Performance of SimCode: time 1.223e-06/0.6329, allocations: 0 / 0.5606 GB, free: 13.43 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.471/3.104, allocations: 0.9081 MB / 0.5615 GB, free: 12.52 MB / 378.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