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.001372/0.001372, allocations: 111.6 kB / 17.33 MB, free: 6.195 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.00152/0.00152, allocations: 193.3 kB / 18.25 MB, free: 5.273 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.357/1.357, allocations: 222.9 MB / 241.9 MB, free: 15.42 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.2144/0.2144, allocations: 44.18 MB / 336.2 MB, free: 2.93 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 62.66 kB / 408 MB, free: 27.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1146, allocations: 60.82 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002015/0.1166, allocations: 0.5332 MB / 469.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005129/0.1171, allocations: 217.8 kB / 469.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.691e-05/0.1172, allocations: 0 / 469.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.733e-05/0.1172, allocations: 0 / 469.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.571e-06/0.1172, allocations: 0 / 469.6 MB, free: 13.89 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.000315/0.1176, allocations: 39.91 kB / 469.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.36e-05/0.1176, allocations: 7.984 kB / 469.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.092e-05/0.1177, allocations: 4 kB / 469.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.826e-05/0.1177, allocations: 11.92 kB / 469.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.918e-05/0.1177, allocations: 0 / 469.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.901e-06/0.1177, allocations: 0 / 469.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.1179, allocations: 47.95 kB / 469.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.115e-06/0.1179, allocations: 0 / 469.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.916e-05/0.1179, allocations: 4 kB / 469.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001145/0.118, allocations: 39.94 kB / 469.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.118, allocations: 0 / 469.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1181, allocations: 0 / 469.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.1181, allocations: 0 / 469.7 MB, free: 13.74 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.000323/0.1184, allocations: 361.2 kB / 470.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.1184, allocations: 8.031 kB / 470.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.028e-05/0.1185, allocations: 34.75 kB / 470.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.442e-05/0.1185, allocations: 4.938 kB / 470.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.1186, allocations: 164.4 kB / 470.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.187e-06/0.1186, allocations: 384 / 470.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-06/0.1187, allocations: 384 / 470.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.454e-05/0.1187, allocations: 38.14 kB / 470.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.1187, allocations: 3.938 kB / 470.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.1188, allocations: 4 kB / 470.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.1188, allocations: 3.984 kB / 470.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.688e-05/0.1188, allocations: 0 / 470.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001431/0.1189, allocations: 153.7 kB / 470.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.88e-05/0.119, allocations: 14.58 kB / 470.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.986e-05/0.119, allocations: 12.89 kB / 470.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.901e-06/0.119, allocations: 0 / 470.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.336e-05/0.1191, allocations: 60.27 kB / 470.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.163e-06/0.1191, allocations: 0 / 470.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001812/0.1193, allocations: 71.33 kB / 470.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.179e-05/0.1193, allocations: 77.11 kB / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.565e-05/0.1194, allocations: 89.86 kB / 470.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.1194, allocations: 25.7 kB / 470.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.454e-05/0.1194, allocations: 80.14 kB / 470.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.419e-05/0.1194, allocations: 4 kB / 470.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.566e-05/0.1195, allocations: 13.84 kB / 470.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1196, allocations: 310.8 kB / 471.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.376e-05/0.1196, allocations: 4 kB / 471.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.63e-06/0.1196, allocations: 3.938 kB / 471.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.788e-05/0.1197, allocations: 68.25 kB / 471.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.1197, allocations: 0 / 471.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.6e-05/0.1198, allocations: 55.41 kB / 471.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.005e-05/0.1198, allocations: 37.8 kB / 471.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1198, allocations: 3.938 kB / 471.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.1198, allocations: 0 / 471.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.224e-06/0.1198, allocations: 0 / 471.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.1198, allocations: 3.938 kB / 471.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.372e-05/0.1199, allocations: 0 / 471.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-06/0.1199, allocations: 7.984 kB / 471.4 MB, free: 11.77 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.981e-05/0.12, allocations: 136.4 kB / 471.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.366e-06/0.12, allocations: 3.938 kB / 471.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.219e-05/0.12, allocations: 19.02 kB / 471.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.12, allocations: 0 / 471.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.12, allocations: 0 / 471.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.12, allocations: 0 / 471.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.338e-05/0.1201, allocations: 145.7 kB / 471.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1201, allocations: 0 / 471.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.1201, allocations: 0 / 471.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1201, allocations: 4 kB / 471.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.605e-06/0.1202, allocations: 3.938 kB / 471.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1202, allocations: 3.938 kB / 471.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1202, allocations: 4 kB / 471.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001/0.1203, allocations: 94.83 kB / 471.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.521e-05/0.1203, allocations: 81.3 kB / 471.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.1203, allocations: 3.938 kB / 471.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.468e-06/0.1204, allocations: 0 / 471.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.459e-05/0.1204, allocations: 4 kB / 471.9 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.1204, allocations: 0 / 471.9 MB, free: 11.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.016e-05/0.1204, allocations: 75.28 kB / 472 MB, free: 11.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1204, allocations: 7.969 kB / 472 MB, free: 11.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002116/0.1206, allocations: 23.98 kB / 472 MB, free: 11.07 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.0006295/0.1213, allocations: 0.7169 MB / 472.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001011/0.1214, allocations: 67.39 kB / 472.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1214, allocations: 0 / 472.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.241e-05/0.1214, allocations: 63.34 kB / 472.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.1216, allocations: 3.938 kB / 472.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002741/0.1219, allocations: 118.6 kB / 473 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.1221, allocations: 0.669 MB / 473.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.202e-06/0.1221, allocations: 0 / 473.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.592e-05/0.1221, allocations: 11.44 kB / 473.6 MB, free: 9.336 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1222, allocations: 128 / 473.6 MB, free: 9.336 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01399/0.1361, allocations: 1.298 MB / 474.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/0.1364, allocations: 237.8 kB / 475.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/2.022, allocations: 0 / 475.2 MB, free: 7.875 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