Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 109 kB / 16.27 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 191.2 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.616/1.616, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2469/0.2469, allocations: 43.52 MB / 313.9 MB, free: 0.5312 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001627, allocations: 70.48 kB / 382.8 MB, free: 56.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1211, allocations: 57.78 MB / 440.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001808/0.1229, allocations: 497.4 kB / 441.1 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004797/0.1234, allocations: 209.6 kB / 441.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.279e-05/0.1235, allocations: 0 / 441.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.245e-05/0.1235, allocations: 0 / 441.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.958e-06/0.1235, allocations: 0 / 441.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002666/0.1238, allocations: 47.83 kB / 441.3 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.924e-05/0.1239, allocations: 4 kB / 441.4 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.672e-05/0.1239, allocations: 0 / 441.4 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.308e-05/0.1239, allocations: 11.98 kB / 441.4 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.984e-05/0.1239, allocations: 0 / 441.4 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.099e-06/0.124, allocations: 0 / 441.4 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.1241, allocations: 43.95 kB / 441.4 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.795e-06/0.1241, allocations: 4 kB / 441.4 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.117e-05/0.1241, allocations: 0 / 441.4 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001242/0.1242, allocations: 51.86 kB / 441.5 MB, free: 5.961 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1242, allocations: 0 / 441.5 MB, free: 5.961 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1242, allocations: 0 / 441.5 MB, free: 5.961 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.1243, allocations: 0 / 441.5 MB, free: 5.961 MB / 318.1 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.0003191/0.1246, allocations: 361.2 kB / 441.8 MB, free: 5.551 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.1246, allocations: 15.89 kB / 441.8 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.746e-05/0.1247, allocations: 30.75 kB / 441.9 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.886e-05/0.1247, allocations: 0.9375 kB / 441.9 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.295e-05/0.1248, allocations: 163 kB / 442 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.1248, allocations: 384 / 442 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.378e-06/0.1248, allocations: 4.312 kB / 442 MB, free: 5.297 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.481e-05/0.1249, allocations: 34.25 kB / 442.1 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.1249, allocations: 3.938 kB / 442.1 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.635e-06/0.1249, allocations: 0 / 442.1 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1249, allocations: 4 kB / 442.1 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.173e-05/0.125, allocations: 4 kB / 442.1 MB, free: 5.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.585e-05/0.1251, allocations: 145.7 kB / 442.2 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.738e-05/0.1251, allocations: 14.58 kB / 442.2 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.282e-05/0.1251, allocations: 12.89 kB / 442.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.328e-06/0.1251, allocations: 0 / 442.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.1252, allocations: 64.25 kB / 442.3 MB, free: 4.938 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.463e-06/0.1252, allocations: 3.938 kB / 442.3 MB, free: 4.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001509/0.1253, allocations: 71.28 kB / 442.4 MB, free: 4.852 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.347e-05/0.1254, allocations: 77.11 kB / 442.4 MB, free: 4.758 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.521e-05/0.1254, allocations: 89.86 kB / 442.5 MB, free: 4.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.63e-06/0.1254, allocations: 25.7 kB / 442.6 MB, free: 4.629 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.759e-06/0.1254, allocations: 84.14 kB / 442.6 MB, free: 4.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.517e-05/0.1254, allocations: 7.922 kB / 442.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.056e-05/0.1255, allocations: 9.844 kB / 442.7 MB, free: 4.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.028e-05/0.1255, allocations: 314.8 kB / 443 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.928e-06/0.1255, allocations: 7.938 kB / 443 MB, free: 4.195 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.86e-06/0.1255, allocations: 0 / 443 MB, free: 4.195 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.102e-05/0.1256, allocations: 64.27 kB / 443 MB, free: 4.117 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1256, allocations: 0 / 443 MB, free: 4.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.161e-05/0.1257, allocations: 63.39 kB / 443.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.1257, allocations: 30.64 kB / 443.1 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1257, allocations: 8.031 kB / 443.1 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.1257, allocations: 3.984 kB / 443.1 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.1257, allocations: 0 / 443.1 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1257, allocations: 0 / 443.1 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.764e-05/0.1257, allocations: 4 kB / 443.1 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.1258, allocations: 4 kB / 443.2 MB, free: 3.988 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.754e-05/0.1258, allocations: 143.4 kB / 443.3 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.387e-06/0.1258, allocations: 7.984 kB / 443.3 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.023e-05/0.1259, allocations: 7.062 kB / 443.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1259, allocations: 4 kB / 443.3 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1259, allocations: 0 / 443.3 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1259, allocations: 0 / 443.3 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.255e-05/0.1259, allocations: 141.7 kB / 443.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1259, allocations: 0 / 443.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1259, allocations: 4 kB / 443.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1259, allocations: 3.984 kB / 443.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.126, allocations: 3.938 kB / 443.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.126, allocations: 0 / 443.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.126, allocations: 0 / 443.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.661e-05/0.126, allocations: 90.84 kB / 443.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.307e-05/0.1261, allocations: 81.09 kB / 443.6 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.1261, allocations: 3.938 kB / 443.6 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.718e-06/0.1261, allocations: 3.938 kB / 443.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.694e-05/0.1261, allocations: 4 kB / 443.6 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.1261, allocations: 0 / 443.6 MB, free: 3.391 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.903e-05/0.1262, allocations: 79.22 kB / 443.7 MB, free: 3.312 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1262, allocations: 0 / 443.7 MB, free: 3.312 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002438/0.1264, allocations: 27.97 kB / 443.7 MB, free: 3.285 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005096/0.1269, allocations: 0.7175 MB / 444.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.345e-05/0.127, allocations: 59.41 kB / 444.5 MB, free: 2.5 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.127, allocations: 0 / 444.5 MB, free: 2.5 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.332e-05/0.1271, allocations: 63.33 kB / 444.6 MB, free: 2.426 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001292/0.1272, allocations: 4.125 kB / 444.6 MB, free: 2.422 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002785/0.1275, allocations: 114.6 kB / 444.7 MB, free: 2.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.711e-05/0.1276, allocations: 0.669 MB / 445.4 MB, free: 1.574 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.52e-06/0.1276, allocations: 4 kB / 445.4 MB, free: 1.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.339e-05/0.1276, allocations: 7.438 kB / 445.4 MB, free: 1.562 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1276, allocations: 0 / 445.4 MB, free: 1.562 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01604/0.1437, allocations: 1.354 MB / 446.7 MB, free: 216 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.979/10.12, allocations: 8.922 kB / 446.7 MB, free: 208 kB / 318.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches