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.001193/0.001193, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001163/0.001163, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.298/1.298, allocations: 222.9 MB / 242.3 MB, free: 15.22 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.2305/0.2305, allocations: 44.19 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001242, allocations: 64.69 kB / 408.5 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09015/0.09141, allocations: 60.82 MB / 469.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00191/0.09336, allocations: 483.7 kB / 469.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006086/0.09399, allocations: 205.9 kB / 470 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.315e-05/0.09404, allocations: 0 / 470 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.558e-05/0.09406, allocations: 0 / 470 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.939e-06/0.0941, allocations: 0 / 470 MB, free: 13.62 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.0003324/0.09444, allocations: 55.83 kB / 470.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.163e-05/0.09451, allocations: 3.984 kB / 470.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.731e-05/0.09456, allocations: 4 kB / 470.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.446e-05/0.09458, allocations: 3.938 kB / 470.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.442e-05/0.09461, allocations: 4 kB / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.063e-06/0.09462, allocations: 0 / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.09476, allocations: 55.89 kB / 470.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.624e-06/0.09478, allocations: 0 / 470.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.905e-05/0.0948, allocations: 0 / 470.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001366/0.09494, allocations: 47.92 kB / 470.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.09496, allocations: 0 / 470.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.09497, allocations: 4 kB / 470.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.09497, allocations: 0 / 470.2 MB, free: 13.45 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.000346/0.09533, allocations: 356.1 kB / 470.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.09537, allocations: 12.03 kB / 470.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.001e-05/0.09541, allocations: 30.75 kB / 470.6 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.378e-05/0.09544, allocations: 0.9375 kB / 470.6 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.09554, allocations: 164.4 kB / 470.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.09556, allocations: 384 / 470.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.107e-06/0.09557, allocations: 4.375 kB / 470.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.09568, allocations: 34.25 kB / 470.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.0957, allocations: 3.938 kB / 470.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.09572, allocations: 0 / 470.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.09574, allocations: 3.938 kB / 470.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.442e-05/0.09576, allocations: 7.938 kB / 470.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001575/0.09593, allocations: 141.7 kB / 470.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.047e-05/0.09598, allocations: 22.61 kB / 471 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.632e-05/0.096, allocations: 8.844 kB / 471 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-06/0.09601, allocations: 4 kB / 471 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.689e-05/0.09606, allocations: 60.25 kB / 471 MB, free: 12.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.09607, allocations: 0 / 471 MB, free: 12.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001831/0.09625, allocations: 67.34 kB / 471.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.09631, allocations: 77.11 kB / 471.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.871e-05/0.09635, allocations: 101.8 kB / 471.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.09638, allocations: 25.7 kB / 471.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.742e-05/0.09641, allocations: 84.27 kB / 471.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.828e-05/0.09644, allocations: 0 / 471.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.716e-05/0.09647, allocations: 9.719 kB / 471.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.09658, allocations: 314.8 kB / 471.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.616e-06/0.0966, allocations: 0 / 471.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.551e-06/0.09661, allocations: 0 / 471.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.3e-05/0.09669, allocations: 64.27 kB / 471.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.0967, allocations: 0 / 471.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.945e-05/0.09678, allocations: 71.39 kB / 471.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.903e-05/0.09682, allocations: 32.2 kB / 471.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.09683, allocations: 3.938 kB / 471.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.09684, allocations: 0 / 471.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.437e-06/0.09685, allocations: 0 / 471.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.09686, allocations: 7.938 kB / 471.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.583e-05/0.09688, allocations: 0 / 471.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.09689, allocations: 0 / 471.9 MB, free: 11.49 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 9.382e-05/0.09699, allocations: 139.6 kB / 472 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.236e-06/0.097, allocations: 4 kB / 472 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.271e-05/0.09702, allocations: 11.02 kB / 472 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.09703, allocations: 0 / 472 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.09704, allocations: 0 / 472 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-06/0.09704, allocations: 0 / 472 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.028e-05/0.09714, allocations: 149.7 kB / 472.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.09715, allocations: 3.984 kB / 472.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.09715, allocations: 0 / 472.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.09716, allocations: 0 / 472.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.09717, allocations: 7.938 kB / 472.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.09718, allocations: 4 kB / 472.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.09719, allocations: 0 / 472.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.483e-05/0.09728, allocations: 94.77 kB / 472.3 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.827e-05/0.09732, allocations: 85.23 kB / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.09734, allocations: 3.938 kB / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.668e-06/0.09736, allocations: 4 kB / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.164e-05/0.09738, allocations: 0 / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.09738, allocations: 32 / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.233e-05/0.09742, allocations: 79.28 kB / 472.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.09743, allocations: 0 / 472.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002417/0.09767, allocations: 16 kB / 472.5 MB, free: 10.79 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.0007239/0.09841, allocations: 0.7328 MB / 473.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001042/0.09852, allocations: 59.39 kB / 473.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.09853, allocations: 0 / 473.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.004e-05/0.09858, allocations: 55.41 kB / 473.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.09871, allocations: 7.875 kB / 473.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003217/0.09904, allocations: 126.6 kB / 473.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.0993, allocations: 0.669 MB / 474.1 MB, free: 9.062 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.883e-06/0.09931, allocations: 0 / 474.1 MB, free: 9.062 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.459e-05/0.09933, allocations: 11.56 kB / 474.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of SimCode: time 1.753e-06/0.09934, allocations: 0 / 474.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09979/0.1991, allocations: 1.363 MB / 475.5 MB, free: 7.738 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.096/8.295, allocations: 15.91 kB / 475.5 MB, free: 7.727 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