Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001592/0.001593, allocations: 193.4 kB / 16.1 MB, free: 5.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 226.5 MB / 243.4 MB, free: 6.527 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007449/0.0007447, allocations: 98.75 kB / 295.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3704/0.3704, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002995/0.0002996, allocations: 8 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3323, allocations: 62.96 MB / 0.516 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005034/0.3329, allocations: 211.2 kB / 0.5162 GB, free: 37 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003841/0.3333, allocations: 188 kB / 0.5163 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.691e-05/0.3333, allocations: 4 kB / 0.5163 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.087e-06/0.3333, allocations: 0 / 0.5163 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.49e-06/0.3333, allocations: 2.75 kB / 0.5163 GB, free: 36.89 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:289:3-320: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.0002152/0.3335, allocations: 39.08 kB / 0.5164 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.773e-05/0.3336, allocations: 0 / 0.5164 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.662e-05/0.3336, allocations: 6.984 kB / 0.5164 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.388e-05/0.3336, allocations: 3.938 kB / 0.5164 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.207e-05/0.3337, allocations: 0 / 0.5164 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.149e-06/0.3337, allocations: 3.938 kB / 0.5164 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.307e-05/0.3338, allocations: 48.44 kB / 0.5164 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.142e-06/0.3338, allocations: 0 / 0.5164 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.842e-05/0.3338, allocations: 32.73 kB / 0.5165 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.865e-05/0.3339, allocations: 27.06 kB / 0.5165 GB, free: 36.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3339, allocations: 0 / 0.5165 GB, free: 36.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3339, allocations: 0 / 0.5165 GB, free: 36.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.017e-06/0.3339, allocations: 0 / 0.5165 GB, free: 36.79 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.0001944/0.3341, allocations: 355 kB / 0.5168 GB, free: 36.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3342, allocations: 9.906 kB / 0.5168 GB, free: 36.4 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.079e-05/0.3342, allocations: 30.75 kB / 0.5169 GB, free: 36.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.844e-05/0.3342, allocations: 0.9375 kB / 0.5169 GB, free: 36.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.215e-05/0.3343, allocations: 163.6 kB / 0.517 GB, free: 36.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.3343, allocations: 7.156 kB / 0.517 GB, free: 36.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.612e-06/0.3343, allocations: 4.359 kB / 0.517 GB, free: 36.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.59e-05/0.3344, allocations: 29.11 kB / 0.5171 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.3344, allocations: 7.875 kB / 0.5171 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.751e-06/0.3344, allocations: 0 / 0.5171 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.3344, allocations: 0 / 0.5171 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.354e-05/0.3344, allocations: 6.156 kB / 0.5171 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.731e-05/0.3345, allocations: 141.7 kB / 0.5172 GB, free: 35.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.038e-05/0.3345, allocations: 25.33 kB / 0.5172 GB, free: 35.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.066e-05/0.3346, allocations: 8.797 kB / 0.5173 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.552e-06/0.3346, allocations: 0 / 0.5173 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.3346, allocations: 66.38 kB / 0.5173 GB, free: 35.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.21e-07/0.3346, allocations: 0 / 0.5173 GB, free: 35.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001227/0.3347, allocations: 67.88 kB / 0.5174 GB, free: 35.74 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.666e-05/0.3348, allocations: 85.11 kB / 0.5175 GB, free: 35.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.841e-05/0.3348, allocations: 97.17 kB / 0.5176 GB, free: 35.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.823e-06/0.3348, allocations: 25.7 kB / 0.5176 GB, free: 35.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.058e-05/0.3348, allocations: 80.14 kB / 0.5177 GB, free: 35.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.192e-05/0.3348, allocations: 0 / 0.5177 GB, free: 35.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.004e-06/0.3348, allocations: 2.75 kB / 0.5177 GB, free: 35.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.314e-05/0.3349, allocations: 310.8 kB / 0.518 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.781e-06/0.3349, allocations: 3.938 kB / 0.518 GB, free: 35.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.308e-06/0.3349, allocations: 3 kB / 0.518 GB, free: 35.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.933e-05/0.3349, allocations: 67.11 kB / 0.518 GB, free: 35.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.335, allocations: 0 / 0.518 GB, free: 35.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.713e-05/0.335, allocations: 64.3 kB / 0.5181 GB, free: 34.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.335, allocations: 31.64 kB / 0.5181 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.335, allocations: 3.938 kB / 0.5181 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.3351, allocations: 0 / 0.5181 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.3351, allocations: 0 / 0.5181 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.3351, allocations: 2.875 kB / 0.5181 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.496e-05/0.3351, allocations: 3.234 kB / 0.5181 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.3351, allocations: 0 / 0.5181 GB, free: 34.93 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 () * 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 4.664e-05/0.3352, allocations: 138.5 kB / 0.5183 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.871e-06/0.3352, allocations: 0 / 0.5183 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.933e-06/0.3352, allocations: 10.66 kB / 0.5183 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.3352, allocations: 2.938 kB / 0.5183 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.594e-06/0.3352, allocations: 0 / 0.5183 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-06/0.3352, allocations: 0 / 0.5183 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.538e-05/0.3352, allocations: 153 kB / 0.5184 GB, free: 34.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.3352, allocations: 0 / 0.5184 GB, free: 34.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.3353, allocations: 2.875 kB / 0.5184 GB, free: 34.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-07/0.3353, allocations: 4 kB / 0.5184 GB, free: 34.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-06/0.3353, allocations: 3.938 kB / 0.5184 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3353, allocations: 3.938 kB / 0.5184 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.3353, allocations: 3.938 kB / 0.5184 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.112e-05/0.3353, allocations: 89.67 kB / 0.5185 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.365e-05/0.3354, allocations: 80.34 kB / 0.5186 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.124e-05/0.3354, allocations: 6.875 kB / 0.5186 GB, free: 34.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.486e-06/0.3354, allocations: 4.031 kB / 0.5186 GB, free: 34.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.268e-05/0.3354, allocations: 0 / 0.5186 GB, free: 34.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.3354, allocations: 0 / 0.5186 GB, free: 34.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.092e-05/0.3354, allocations: 77.84 kB / 0.5187 GB, free: 34.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3354, allocations: 0 / 0.5187 GB, free: 34.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002238/0.3357, allocations: 15.88 kB / 0.5187 GB, free: 34.29 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) * 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.0004505/0.3361, allocations: 0.7398 MB / 0.5194 GB, free: 33.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.004e-05/0.3362, allocations: 57.81 kB / 0.5195 GB, free: 33.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.3362, allocations: 0 / 0.5195 GB, free: 33.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.691e-05/0.3362, allocations: 54.59 kB / 0.5195 GB, free: 33.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001089/0.3363, allocations: 2.969 kB / 0.5195 GB, free: 33.49 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002119/0.3366, allocations: 141 kB / 0.5197 GB, free: 33.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.994e-05/0.3367, allocations: 0.677 MB / 0.5203 GB, free: 32.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.327e-06/0.3367, allocations: 14.34 kB / 0.5203 GB, free: 32.6 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3367, allocations: 0 / 0.5203 GB, free: 32.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.414/2.75, allocations: 0.8762 MB / 0.5212 GB, free: 32.52 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches