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.00113/0.00113, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001249/0.001249, allocations: 183.9 kB / 18.7 MB, free: 4.371 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.334/1.334, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2098/0.2098, allocations: 44.19 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 59.91 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3098, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001559/0.3114, allocations: 483.9 kB / 0.5189 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005286/0.312, allocations: 210 kB / 0.5191 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.494e-05/0.312, allocations: 1.344 kB / 0.5191 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.547e-05/0.312, allocations: 0 / 0.5191 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-06/0.3121, allocations: 0 / 0.5191 GB, free: 2.871 MB / 382.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.0003108/0.3124, allocations: 43.64 kB / 0.5191 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.858e-05/0.3125, allocations: 10.7 kB / 0.5191 GB, free: 2.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.371e-05/0.3125, allocations: 1.734 kB / 0.5191 GB, free: 2.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.587e-05/0.3126, allocations: 4.875 kB / 0.5191 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.869e-05/0.3126, allocations: 0 / 0.5191 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.304e-06/0.3126, allocations: 1.031 kB / 0.5191 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.3128, allocations: 55.75 kB / 0.5192 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.735e-06/0.3128, allocations: 0 / 0.5192 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.72e-05/0.3128, allocations: 1 kB / 0.5192 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001207/0.3129, allocations: 42.39 kB / 0.5192 GB, free: 2.801 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3129, allocations: 3.281 kB / 0.5192 GB, free: 2.801 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3129, allocations: 0 / 0.5192 GB, free: 2.801 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.313, allocations: 0 / 0.5192 GB, free: 2.801 MB / 382.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.0002491/0.3132, allocations: 361.2 kB / 0.5196 GB, free: 2.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.3133, allocations: 13.5 kB / 0.5196 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.289e-05/0.3133, allocations: 30.75 kB / 0.5196 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.423e-05/0.3133, allocations: 0.9375 kB / 0.5196 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.434e-05/0.3134, allocations: 165.6 kB / 0.5198 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.985e-06/0.3134, allocations: 384 / 0.5198 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.3134, allocations: 5.547 kB / 0.5198 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.161e-05/0.3135, allocations: 31.77 kB / 0.5198 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.3135, allocations: 3.938 kB / 0.5198 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.3135, allocations: 4 kB / 0.5198 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.3135, allocations: 1.281 kB / 0.5198 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.806e-05/0.3135, allocations: 1.188 kB / 0.5198 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.863e-05/0.3136, allocations: 147 kB / 0.5199 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.492e-05/0.3137, allocations: 21.75 kB / 0.52 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.257e-05/0.3137, allocations: 5.922 kB / 0.52 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.488e-06/0.3137, allocations: 1.156 kB / 0.52 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.3137, allocations: 61.2 kB / 0.52 GB, free: 1.816 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.3138, allocations: 0 / 0.52 GB, free: 1.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001591/0.3139, allocations: 69.92 kB / 0.5201 GB, free: 1.746 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/0.314, allocations: 79.03 kB / 0.5202 GB, free: 1.652 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.64e-05/0.314, allocations: 89.86 kB / 0.5203 GB, free: 1.555 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.272e-06/0.314, allocations: 25.7 kB / 0.5203 GB, free: 1.523 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.02e-05/0.314, allocations: 81.14 kB / 0.5204 GB, free: 1.441 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.314, allocations: 3.984 kB / 0.5204 GB, free: 1.438 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.3141, allocations: 20.83 kB / 0.5204 GB, free: 1.414 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.039e-05/0.3141, allocations: 312.6 kB / 0.5207 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.097e-05/0.3141, allocations: 5.828 kB / 0.5207 GB, free: 1.098 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.723e-06/0.3141, allocations: 1.062 kB / 0.5207 GB, free: 1.098 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.711e-05/0.3142, allocations: 64.61 kB / 0.5208 GB, free: 1.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3142, allocations: 0 / 0.5208 GB, free: 1.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.029e-05/0.3143, allocations: 60.08 kB / 0.5208 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/0.3143, allocations: 33.03 kB / 0.5208 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.3143, allocations: 11.88 kB / 0.5209 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.3143, allocations: 0.7969 kB / 0.5209 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.734e-06/0.3143, allocations: 1.125 kB / 0.5209 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.3143, allocations: 0 / 0.5209 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.633e-05/0.3144, allocations: 5.062 kB / 0.5209 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.3144, allocations: 4.922 kB / 0.5209 GB, free: 0.9102 MB / 382.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.345e-05/0.3144, allocations: 138.3 kB / 0.521 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.728e-06/0.3145, allocations: 1.734 kB / 0.521 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.063e-05/0.3145, allocations: 16.14 kB / 0.521 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.3145, allocations: 0.7031 kB / 0.521 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.3145, allocations: 1.062 kB / 0.521 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3145, allocations: 3.938 kB / 0.521 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.135e-05/0.3146, allocations: 147.7 kB / 0.5212 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3146, allocations: 0 / 0.5212 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.62e-07/0.3146, allocations: 1.031 kB / 0.5212 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.3146, allocations: 0 / 0.5212 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.054e-06/0.3146, allocations: 5.828 kB / 0.5212 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3146, allocations: 1.094 kB / 0.5212 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3146, allocations: 0 / 0.5212 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.55e-05/0.3147, allocations: 93.28 kB / 0.5213 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.375e-05/0.3147, allocations: 77.81 kB / 0.5213 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.3147, allocations: 5.516 kB / 0.5213 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.059e-05/0.3147, allocations: 1.062 kB / 0.5213 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.19e-05/0.3147, allocations: 5.938 kB / 0.5213 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.3148, allocations: 0 / 0.5213 GB, free: 356 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.167e-05/0.3148, allocations: 76.47 kB / 0.5214 GB, free: 280 kB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3148, allocations: 4.031 kB / 0.5214 GB, free: 276 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002253/0.315, allocations: 20.92 kB / 0.5214 GB, free: 268 kB / 382.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.0006521/0.3157, allocations: 0.7199 MB / 0.5221 GB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.842e-05/0.3158, allocations: 71.06 kB / 0.5222 GB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3158, allocations: 0 / 0.5222 GB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.05e-05/0.3158, allocations: 59.92 kB / 0.5223 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.316, allocations: 1.312 kB / 0.5223 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000325/0.3163, allocations: 119.1 kB / 0.5224 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.3165, allocations: 0.6788 MB / 0.523 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.584e-06/0.3166, allocations: 0.9688 kB / 0.523 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.324e-05/0.3166, allocations: 11.38 kB / 0.5231 GB, free: 14.61 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3166, allocations: 1.219 kB / 0.5231 GB, free: 14.61 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02903/0.3456, allocations: 1.39 MB / 0.5244 GB, free: 14.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.828/8.173, allocations: 6.125 kB / 0.5244 GB, free: 14.16 MB / 398.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