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.0009419/0.0009422, allocations: 95.34 kB / 17.35 MB, free: 6.344 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.001055/0.001055, allocations: 173.8 kB / 18.25 MB, free: 5.504 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.264/1.264, allocations: 223.3 MB / 242.3 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.182/0.182, allocations: 44.25 MB / 337.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002827/0.0002827, allocations: 8 kB / 410.4 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1037, allocations: 61.92 MB / 472.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005541/0.1043, allocations: 210.9 kB / 472.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004614/0.1048, allocations: 205.2 kB / 472.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.788e-06/0.1048, allocations: 0 / 472.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.999e-06/0.1048, allocations: 0 / 472.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.917e-06/0.1048, allocations: 4 kB / 472.8 MB, free: 12.87 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.0002076/0.105, allocations: 35.91 kB / 472.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.395e-05/0.1051, allocations: 7.984 kB / 472.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.6e-05/0.1051, allocations: 0 / 472.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.607e-05/0.1052, allocations: 7.938 kB / 472.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.789e-05/0.1052, allocations: 0 / 472.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.63e-06/0.1052, allocations: 0 / 472.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.1053, allocations: 47.95 kB / 472.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.161e-06/0.1053, allocations: 4 kB / 472.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.45e-05/0.1053, allocations: 29.7 kB / 472.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.709e-05/0.1054, allocations: 47.92 kB / 472.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1055, allocations: 0 / 472.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1055, allocations: 0 / 472.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.1055, allocations: 0 / 472.9 MB, free: 12.68 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.0002591/0.1057, allocations: 341.3 kB / 473.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.1058, allocations: 15.97 kB / 473.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.743e-05/0.1058, allocations: 38.69 kB / 473.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.934e-05/0.1059, allocations: 0.9375 kB / 473.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.995e-05/0.1059, allocations: 164.4 kB / 473.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-06/0.1059, allocations: 384 / 473.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.063e-06/0.106, allocations: 4.375 kB / 473.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.28e-05/0.106, allocations: 30.25 kB / 473.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.106, allocations: 3.938 kB / 473.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.061e-06/0.1061, allocations: 0 / 473.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.1061, allocations: 7.938 kB / 473.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.596e-05/0.1061, allocations: 3.984 kB / 473.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001026/0.1062, allocations: 149.7 kB / 473.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.427e-05/0.1062, allocations: 26.55 kB / 473.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.258e-05/0.1063, allocations: 4.859 kB / 473.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.888e-06/0.1063, allocations: 0 / 473.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.1063, allocations: 60.25 kB / 473.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.1063, allocations: 0 / 473.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001392/0.1064, allocations: 63.41 kB / 473.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.1065, allocations: 89.17 kB / 473.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.288e-05/0.1065, allocations: 93.86 kB / 474 MB, free: 11.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.918e-06/0.1065, allocations: 25.7 kB / 474 MB, free: 11.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.162e-05/0.1066, allocations: 80.14 kB / 474.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.426e-05/0.1066, allocations: 0 / 474.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.147e-05/0.1066, allocations: 13.7 kB / 474.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.447e-05/0.1067, allocations: 310.8 kB / 474.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.466e-06/0.1067, allocations: 4 kB / 474.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.188e-06/0.1067, allocations: 0 / 474.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.03e-05/0.1068, allocations: 64.33 kB / 474.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1068, allocations: 0 / 474.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.438e-05/0.1069, allocations: 67.33 kB / 474.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.1069, allocations: 36.2 kB / 474.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1069, allocations: 3.938 kB / 474.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/0.1069, allocations: 0 / 474.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.1069, allocations: 0 / 474.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.1069, allocations: 0 / 474.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.495e-05/0.107, allocations: 0 / 474.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.107, allocations: 11.97 kB / 474.6 MB, free: 10.72 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 6.904e-05/0.107, allocations: 131.5 kB / 474.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.232e-06/0.1071, allocations: 0 / 474.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.254e-05/0.1071, allocations: 19 kB / 474.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1071, allocations: 0 / 474.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.1071, allocations: 0 / 474.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-06/0.1071, allocations: 0 / 474.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.653e-05/0.1072, allocations: 145.7 kB / 474.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.1072, allocations: 0 / 474.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1072, allocations: 4 kB / 474.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1072, allocations: 4 kB / 474.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.1072, allocations: 3.938 kB / 474.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.1072, allocations: 3.984 kB / 474.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1072, allocations: 0 / 474.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.144e-05/0.1073, allocations: 90.78 kB / 475 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.256e-05/0.1073, allocations: 85.23 kB / 475.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.1074, allocations: 7.922 kB / 475.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.516e-06/0.1074, allocations: 4.031 kB / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.29e-05/0.1074, allocations: 4 kB / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.1074, allocations: 0 / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.25e-05/0.1074, allocations: 75.28 kB / 475.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1074, allocations: 0 / 475.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001948/0.1076, allocations: 16 kB / 475.2 MB, free: 10.03 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.000595/0.1082, allocations: 0.7361 MB / 475.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.747e-05/0.1083, allocations: 63.34 kB / 476 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1083, allocations: 0 / 476 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.578e-05/0.1084, allocations: 51.41 kB / 476 MB, free: 9.164 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001302/0.1085, allocations: 7.984 kB / 476.1 MB, free: 9.156 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002613/0.1088, allocations: 120.5 kB / 476.2 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000204/0.109, allocations: 0.6731 MB / 476.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.679e-06/0.109, allocations: 0 / 476.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.201e-05/0.109, allocations: 7.438 kB / 476.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.109, allocations: 0 / 476.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01076/0.1198, allocations: 1.167 MB / 478 MB, free: 7.223 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002371/0.1201, allocations: 240 kB / 478.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.732/1.852, allocations: 0 / 478.2 MB, free: 6.961 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