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.001256/0.001256, allocations: 175.2 kB / 16.72 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.283/1.283, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0007201/0.00072, allocations: 92.95 kB / 271.2 MB, free: 8.242 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.2896/0.2896, allocations: 43.57 MB / 363.1 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003768/0.0003768, allocations: 15.98 kB / 432.1 MB, free: 5.508 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09978/0.1002, allocations: 58.84 MB / 490.9 MB, free: 10.58 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005159/0.1007, allocations: 228.4 kB / 491.1 MB, free: 10.36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004424/0.1012, allocations: 189.1 kB / 491.3 MB, free: 10.17 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.631e-05/0.1012, allocations: 0 / 491.3 MB, free: 10.17 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.969e-06/0.1012, allocations: 0 / 491.3 MB, free: 10.17 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.274e-06/0.1013, allocations: 4 kB / 491.3 MB, free: 10.17 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002829/0.1015, allocations: 43.84 kB / 491.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.193e-05/0.1016, allocations: 4 kB / 491.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.455e-05/0.1017, allocations: 0 / 491.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.453e-05/0.1017, allocations: 0 / 491.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.697e-05/0.1017, allocations: 4 kB / 491.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.58e-06/0.1017, allocations: 0 / 491.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.1019, allocations: 51.94 kB / 491.4 MB, free: 10.07 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.041e-06/0.1019, allocations: 0 / 491.4 MB, free: 10.07 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.79e-05/0.1019, allocations: 25.7 kB / 491.4 MB, free: 10.04 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.41e-05/0.102, allocations: 31.95 kB / 491.5 MB, free: 10 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.102, allocations: 4 kB / 491.5 MB, free: 10 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.102, allocations: 3.938 kB / 491.5 MB, free: 9.996 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.102, allocations: 0 / 491.5 MB, free: 9.996 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.0002562/0.1023, allocations: 341.3 kB / 491.8 MB, free: 9.605 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.1023, allocations: 12.03 kB / 491.8 MB, free: 9.594 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.933e-05/0.1024, allocations: 34.69 kB / 491.9 MB, free: 9.551 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.192e-05/0.1024, allocations: 4.844 kB / 491.9 MB, free: 9.547 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.986e-05/0.1025, allocations: 160.4 kB / 492 MB, free: 9.352 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.908e-06/0.1025, allocations: 8.359 kB / 492 MB, free: 9.344 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.578e-06/0.1025, allocations: 4.375 kB / 492 MB, free: 9.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.954e-05/0.1026, allocations: 30.27 kB / 492.1 MB, free: 9.305 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1026, allocations: 3.938 kB / 492.1 MB, free: 9.301 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.422e-06/0.1026, allocations: 0 / 492.1 MB, free: 9.301 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.1026, allocations: 0 / 492.1 MB, free: 9.301 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.598e-05/0.1026, allocations: 4 kB / 492.1 MB, free: 9.297 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001176/0.1028, allocations: 141.7 kB / 492.2 MB, free: 9.109 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.602e-05/0.1028, allocations: 26.53 kB / 492.2 MB, free: 9.074 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.411e-05/0.1028, allocations: 12.86 kB / 492.3 MB, free: 9.059 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.1028, allocations: 0 / 492.3 MB, free: 9.059 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/0.1029, allocations: 56.27 kB / 492.3 MB, free: 8.988 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.1029, allocations: 0 / 492.3 MB, free: 8.988 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001383/0.103, allocations: 67.34 kB / 492.4 MB, free: 8.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.1031, allocations: 81.09 kB / 492.5 MB, free: 8.812 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.293e-05/0.1031, allocations: 89.86 kB / 492.5 MB, free: 8.715 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.064e-05/0.1032, allocations: 29.7 kB / 492.6 MB, free: 8.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.495e-05/0.1032, allocations: 88.27 kB / 492.7 MB, free: 8.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.344e-05/0.1032, allocations: 0 / 492.7 MB, free: 8.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.894e-06/0.1032, allocations: 0 / 492.7 MB, free: 8.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.518e-05/0.1033, allocations: 310.8 kB / 493 MB, free: 8.277 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.689e-06/0.1033, allocations: 0 / 493 MB, free: 8.277 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.925e-06/0.1033, allocations: 7.938 kB / 493 MB, free: 8.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.98e-05/0.1034, allocations: 56.27 kB / 493 MB, free: 8.199 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1034, allocations: 7.938 kB / 493 MB, free: 8.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.694e-05/0.1035, allocations: 71.39 kB / 493.1 MB, free: 8.109 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.1035, allocations: 36.98 kB / 493.1 MB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1035, allocations: 3.938 kB / 493.1 MB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.1035, allocations: 0 / 493.1 MB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.02e-07/0.1035, allocations: 0 / 493.1 MB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.1035, allocations: 0 / 493.1 MB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.461e-05/0.1036, allocations: 0 / 493.1 MB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.1036, allocations: 0 / 493.1 MB, free: 8.066 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 7.566e-05/0.1036, allocations: 143.6 kB / 493.3 MB, free: 7.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.392e-06/0.1037, allocations: 0 / 493.3 MB, free: 7.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.145e-05/0.1037, allocations: 7.062 kB / 493.3 MB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.1037, allocations: 0 / 493.3 MB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1037, allocations: 4 kB / 493.3 MB, free: 7.898 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.1037, allocations: 0 / 493.3 MB, free: 7.898 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.598e-05/0.1038, allocations: 141.7 kB / 493.4 MB, free: 7.711 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.1038, allocations: 7.984 kB / 493.4 MB, free: 7.703 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.52e-07/0.1038, allocations: 0 / 493.4 MB, free: 7.703 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.1038, allocations: 0 / 493.4 MB, free: 7.703 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.1038, allocations: 7.938 kB / 493.4 MB, free: 7.695 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1038, allocations: 4 kB / 493.4 MB, free: 7.691 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1038, allocations: 0 / 493.4 MB, free: 7.691 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.31e-05/0.1039, allocations: 98.75 kB / 493.5 MB, free: 7.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.813e-05/0.104, allocations: 81.11 kB / 493.6 MB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.104, allocations: 3.938 kB / 493.6 MB, free: 7.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.806e-06/0.104, allocations: 0 / 493.6 MB, free: 7.469 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.343e-05/0.104, allocations: 0 / 493.6 MB, free: 7.469 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.738e-06/0.104, allocations: 4.031 kB / 493.6 MB, free: 7.465 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.553e-05/0.104, allocations: 80.45 kB / 493.7 MB, free: 7.387 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1041, allocations: 0 / 493.7 MB, free: 7.387 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002014/0.1043, allocations: 16 kB / 493.7 MB, free: 7.371 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.000554/0.1048, allocations: 0.7368 MB / 494.5 MB, free: 6.621 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.581e-05/0.1049, allocations: 63.28 kB / 494.5 MB, free: 6.547 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.1049, allocations: 4.062 kB / 494.5 MB, free: 6.543 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.916e-05/0.105, allocations: 59.39 kB / 494.6 MB, free: 6.473 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001114/0.1051, allocations: 3.594 kB / 494.6 MB, free: 6.473 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002595/0.1053, allocations: 146 kB / 494.7 MB, free: 6.281 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.1056, allocations: 0.6731 MB / 495.4 MB, free: 5.582 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.968e-05/0.1056, allocations: 7.438 kB / 495.4 MB, free: 5.578 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.1056, allocations: 0 / 495.4 MB, free: 5.578 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.391/2.497, allocations: 0.8676 MB / 496.3 MB, free: 4.711 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) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches