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.002524/0.002529, allocations: 186.5 kB / 16.4 MB, free: 5.625 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.304/2.304, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001111/0.001111, allocations: 98.84 kB / 270.9 MB, free: 13.38 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.2874/0.2874, allocations: 43.57 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004729/0.0004727, allocations: 16 kB / 431.4 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1188, allocations: 58.87 MB / 490.3 MB, free: 9.242 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0007607/0.1196, allocations: 212.7 kB / 490.5 MB, free: 9.031 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007116/0.1204, allocations: 203.2 kB / 490.7 MB, free: 8.836 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.059e-05/0.1204, allocations: 0 / 490.7 MB, free: 8.836 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.125e-05/0.1204, allocations: 3.938 kB / 490.7 MB, free: 8.832 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 7.534e-06/0.1205, allocations: 0 / 490.7 MB, free: 8.832 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000282/0.1208, allocations: 35.91 kB / 490.8 MB, free: 8.797 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 3.345e-05/0.1208, allocations: 0 / 490.8 MB, free: 8.797 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.898e-05/0.1209, allocations: 0 / 490.8 MB, free: 8.797 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.613e-05/0.1209, allocations: 0 / 490.8 MB, free: 8.797 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.472e-05/0.1209, allocations: 0 / 490.8 MB, free: 8.797 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.732e-06/0.1209, allocations: 0 / 490.8 MB, free: 8.797 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001297/0.1211, allocations: 51.89 kB / 490.8 MB, free: 8.746 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.964e-06/0.1211, allocations: 0 / 490.8 MB, free: 8.746 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.053e-05/0.1211, allocations: 25.7 kB / 490.8 MB, free: 8.715 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.1213, allocations: 27.95 kB / 490.9 MB, free: 8.688 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1213, allocations: 0 / 490.9 MB, free: 8.688 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1213, allocations: 0 / 490.9 MB, free: 8.688 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1213, allocations: 3.938 kB / 490.9 MB, free: 8.684 MB / 330.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.0004179/0.1217, allocations: 341.1 kB / 491.2 MB, free: 8.297 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.1218, allocations: 12.02 kB / 491.2 MB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.276e-05/0.1218, allocations: 34.56 kB / 491.2 MB, free: 8.242 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.807e-05/0.1219, allocations: 7.938 kB / 491.3 MB, free: 8.234 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/0.122, allocations: 167 kB / 491.4 MB, free: 8.031 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.122, allocations: 0 / 491.4 MB, free: 8.031 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.087e-06/0.1221, allocations: 0 / 491.4 MB, free: 8.031 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001034/0.1222, allocations: 33.7 kB / 491.5 MB, free: 7.992 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.1222, allocations: 0 / 491.5 MB, free: 7.992 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.1222, allocations: 0 / 491.5 MB, free: 7.992 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.1222, allocations: 0 / 491.5 MB, free: 7.992 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.022e-05/0.1223, allocations: 0 / 491.5 MB, free: 7.992 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001723/0.1224, allocations: 157.6 kB / 491.6 MB, free: 7.789 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.227e-05/0.1225, allocations: 18.52 kB / 491.6 MB, free: 7.762 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.1225, allocations: 0 / 491.6 MB, free: 7.762 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.581e-05/0.1226, allocations: 64.36 kB / 491.7 MB, free: 7.684 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 1.482e-06/0.1226, allocations: 0 / 491.7 MB, free: 7.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001972/0.1228, allocations: 63.39 kB / 491.7 MB, free: 7.609 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/0.1229, allocations: 77.23 kB / 491.8 MB, free: 7.516 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.869e-05/0.1229, allocations: 93.86 kB / 491.9 MB, free: 7.414 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.123, allocations: 25.7 kB / 491.9 MB, free: 7.383 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.63e-05/0.123, allocations: 154.5 kB / 492.1 MB, free: 7.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.376e-05/0.1231, allocations: 0 / 492.1 MB, free: 7.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-06/0.1231, allocations: 3.938 kB / 492.1 MB, free: 7.227 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1232, allocations: 318.8 kB / 492.4 MB, free: 6.906 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.105e-05/0.1233, allocations: 0 / 492.4 MB, free: 6.906 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.424e-06/0.1233, allocations: 0 / 492.4 MB, free: 6.906 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.048e-05/0.1233, allocations: 33.75 kB / 492.4 MB, free: 6.867 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.1233, allocations: 7.953 kB / 492.4 MB, free: 6.859 MB / 330.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.139e-05/0.1234, allocations: 59.41 kB / 492.5 MB, free: 6.789 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.553e-05/0.1235, allocations: 33.7 kB / 492.5 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.1235, allocations: 0 / 492.5 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.1235, allocations: 0 / 492.5 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.253e-06/0.1235, allocations: 0 / 492.5 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.1236, allocations: 0 / 492.5 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.944e-05/0.1236, allocations: 0 / 492.5 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.1236, allocations: 3.984 kB / 492.5 MB, free: 6.746 MB / 330.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.0001053/0.1237, allocations: 147.6 kB / 492.7 MB, free: 6.586 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.523e-05/0.1237, allocations: 3.953 kB / 492.7 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.595e-05/0.1238, allocations: 7.062 kB / 492.7 MB, free: 6.574 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1238, allocations: 3.938 kB / 492.7 MB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.1238, allocations: 7.938 kB / 492.7 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1238, allocations: 0 / 492.7 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.1239, allocations: 145.7 kB / 492.8 MB, free: 6.371 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1239, allocations: 0 / 492.8 MB, free: 6.371 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.009e-06/0.124, allocations: 3.953 kB / 492.9 MB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.124, allocations: 4 kB / 492.9 MB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.124, allocations: 4 kB / 492.9 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.124, allocations: 0 / 492.9 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.124, allocations: 0 / 492.9 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001276/0.1241, allocations: 90.83 kB / 492.9 MB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.581e-05/0.1242, allocations: 81.09 kB / 493 MB, free: 6.148 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.677e-05/0.1242, allocations: 3.953 kB / 493 MB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.155e-05/0.1242, allocations: 0 / 493 MB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.741e-05/0.1243, allocations: 4.031 kB / 493 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.1243, allocations: 4 kB / 493 MB, free: 6.137 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.593e-05/0.1243, allocations: 75.28 kB / 493.1 MB, free: 6.062 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.1243, allocations: 0 / 493.1 MB, free: 6.062 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002885/0.1246, allocations: 23.98 kB / 493.1 MB, free: 6.039 MB / 330.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.000816/0.1255, allocations: 0.7239 MB / 493.9 MB, free: 5.305 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001247/0.1256, allocations: 67.39 kB / 493.9 MB, free: 5.227 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.1256, allocations: 0 / 493.9 MB, free: 5.227 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.691e-05/0.1257, allocations: 55.41 kB / 494 MB, free: 5.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001082/0.1258, allocations: 7.891 kB / 494 MB, free: 5.152 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003506/0.1262, allocations: 138 kB / 494.1 MB, free: 4.969 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.1265, allocations: 0.6731 MB / 494.8 MB, free: 4.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.348e-05/0.1265, allocations: 7.438 kB / 494.8 MB, free: 4.262 MB / 330.7 MB Notification: Performance of SimCode: time 7.32e-07/0.1265, allocations: 0 / 494.8 MB, free: 4.262 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.339/2.466, allocations: 0.9185 MB / 495.7 MB, free: 3.344 MB / 330.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