Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_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.001562/0.001562, allocations: 108.9 kB / 17.21 MB, free: 6.27 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.001778/0.001778, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 241.8 MB, free: 15.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2363/0.2363, allocations: 44.18 MB / 336.1 MB, free: 3.008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 60.41 kB / 407.8 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1038, allocations: 60.83 MB / 468.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001963/0.1058, allocations: 0.5332 MB / 469.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005602/0.1064, allocations: 217.1 kB / 469.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.212e-05/0.1064, allocations: 0 / 469.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.645e-05/0.1064, allocations: 0 / 469.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.288e-06/0.1065, allocations: 0 / 469.4 MB, free: 14.02 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321: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.0002796/0.1068, allocations: 43.89 kB / 469.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.83e-05/0.1068, allocations: 11.98 kB / 469.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.48e-05/0.1069, allocations: 0 / 469.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.02e-05/0.1069, allocations: 0 / 469.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.352e-05/0.1069, allocations: 0 / 469.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.495e-06/0.1069, allocations: 4 kB / 469.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.1071, allocations: 47.95 kB / 469.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.709e-06/0.1071, allocations: 0 / 469.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.482e-05/0.1071, allocations: 3.984 kB / 469.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001329/0.1073, allocations: 39.95 kB / 469.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1073, allocations: 7.938 kB / 469.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.1073, allocations: 0 / 469.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.117e-06/0.1073, allocations: 4 kB / 469.5 MB, free: 13.86 MB / 350.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.0003554/0.1077, allocations: 349.3 kB / 469.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.1077, allocations: 8.031 kB / 469.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.156e-05/0.1077, allocations: 30.75 kB / 469.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.5e-05/0.1078, allocations: 0.9375 kB / 469.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.1079, allocations: 164.4 kB / 470.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.1079, allocations: 4.312 kB / 470.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.878e-06/0.1079, allocations: 4.375 kB / 470.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.059e-05/0.108, allocations: 38.2 kB / 470.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.108, allocations: 3.938 kB / 470.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.1081, allocations: 0 / 470.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1081, allocations: 4 kB / 470.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.172e-05/0.1081, allocations: 0 / 470.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001299/0.1082, allocations: 145.7 kB / 470.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.36e-05/0.1083, allocations: 26.55 kB / 470.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.305e-05/0.1083, allocations: 4.859 kB / 470.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.143e-06/0.1083, allocations: 4 kB / 470.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.943e-05/0.1084, allocations: 56.27 kB / 470.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.223e-06/0.1084, allocations: 4.062 kB / 470.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001669/0.1086, allocations: 63.33 kB / 470.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/0.1086, allocations: 85.11 kB / 470.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.516e-05/0.1087, allocations: 89.86 kB / 470.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.1087, allocations: 25.7 kB / 470.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.84e-05/0.1087, allocations: 84.27 kB / 470.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.594e-05/0.1088, allocations: 0 / 470.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.925e-05/0.1088, allocations: 13.72 kB / 470.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1089, allocations: 310.8 kB / 471 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.332e-05/0.109, allocations: 7.875 kB / 471 MB, free: 12.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.185e-05/0.109, allocations: 3.984 kB / 471 MB, free: 12.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.98e-05/0.109, allocations: 64.27 kB / 471.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1091, allocations: 0 / 471.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.739e-05/0.1091, allocations: 63.47 kB / 471.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/0.1092, allocations: 29.7 kB / 471.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.1092, allocations: 3.938 kB / 471.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.1092, allocations: 7.984 kB / 471.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.1092, allocations: 0 / 471.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.1092, allocations: 0 / 471.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.52e-05/0.1093, allocations: 0 / 471.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.346e-06/0.1093, allocations: 0 / 471.2 MB, free: 11.91 MB / 350.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 8.435e-05/0.1094, allocations: 143.5 kB / 471.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.986e-06/0.1094, allocations: 4.031 kB / 471.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.565e-05/0.1094, allocations: 11.02 kB / 471.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1094, allocations: 0 / 471.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1094, allocations: 0 / 471.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.1094, allocations: 0 / 471.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.773e-05/0.1095, allocations: 149.7 kB / 471.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1095, allocations: 0 / 471.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.1095, allocations: 0 / 471.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1095, allocations: 0 / 471.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/0.1095, allocations: 3.938 kB / 471.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1096, allocations: 3.938 kB / 471.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1096, allocations: 4 kB / 471.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001089/0.1097, allocations: 90.83 kB / 471.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.343e-05/0.1097, allocations: 77.39 kB / 471.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.1097, allocations: 7.938 kB / 471.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.109e-05/0.1098, allocations: 4 kB / 471.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.365e-05/0.1098, allocations: 3.984 kB / 471.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.1098, allocations: 3.938 kB / 471.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.99e-05/0.1098, allocations: 83.3 kB / 471.8 MB, free: 11.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1098, allocations: 0 / 471.8 MB, free: 11.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002475/0.1101, allocations: 20 kB / 471.8 MB, free: 11.2 MB / 350.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.0007199/0.1108, allocations: 0.7314 MB / 472.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.504e-05/0.1109, allocations: 55.41 kB / 472.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1109, allocations: 0 / 472.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.493e-05/0.111, allocations: 63.34 kB / 472.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001381/0.1111, allocations: 5.875 kB / 472.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003151/0.1114, allocations: 112.3 kB / 472.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.1117, allocations: 0.6731 MB / 473.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.873e-06/0.1117, allocations: 0 / 473.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.542e-05/0.1118, allocations: 11.56 kB / 473.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1118, allocations: 3.938 kB / 473.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01851/0.1303, allocations: 1.263 MB / 474.7 MB, free: 8.273 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002357/0.1305, allocations: 230 kB / 474.9 MB, free: 8.023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.866/1.997, allocations: 0 / 474.9 MB, free: 8.023 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches