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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 216.6 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.464/1.464, allocations: 230.6 MB / 257.5 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2262/0.2262, allocations: 44.91 MB / 358.8 MB, free: 6.324 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002132/0.002132, allocations: 74.33 kB / 0.4931 GB, free: 10.78 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2936, allocations: 65.48 MB / 0.557 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001812/0.2954, allocations: 482.4 kB / 0.5575 GB, free: 7.195 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006116/0.296, allocations: 234.2 kB / 0.5577 GB, free: 7.031 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.373e-05/0.296, allocations: 0 / 0.5577 GB, free: 7.031 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.23e-05/0.296, allocations: 0 / 0.5577 GB, free: 7.031 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.32e-06/0.296, allocations: 0 / 0.5577 GB, free: 7.031 MB / 398.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.0003258/0.2964, allocations: 50.38 kB / 0.5577 GB, free: 6.996 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.217e-05/0.2964, allocations: 1.25 kB / 0.5577 GB, free: 6.996 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.653e-05/0.2965, allocations: 1.219 kB / 0.5577 GB, free: 6.996 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.07e-05/0.2965, allocations: 1.156 kB / 0.5577 GB, free: 6.996 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.232e-05/0.2965, allocations: 1.375 kB / 0.5577 GB, free: 6.996 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.312e-06/0.2965, allocations: 0 / 0.5577 GB, free: 6.996 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001497/0.2967, allocations: 54.67 kB / 0.5578 GB, free: 6.969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.163e-06/0.2967, allocations: 4 kB / 0.5578 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.047e-05/0.2967, allocations: 1.281 kB / 0.5578 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001283/0.2968, allocations: 49.08 kB / 0.5578 GB, free: 6.938 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2968, allocations: 0 / 0.5578 GB, free: 6.938 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2968, allocations: 0 / 0.5578 GB, free: 6.938 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.2968, allocations: 5.328 kB / 0.5579 GB, free: 6.934 MB / 398.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.0003316/0.2972, allocations: 273.8 kB / 0.5581 GB, free: 6.637 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.2972, allocations: 9.344 kB / 0.5581 GB, free: 6.637 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.131e-05/0.2972, allocations: 39.86 kB / 0.5582 GB, free: 6.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.789e-05/0.2973, allocations: 4.938 kB / 0.5582 GB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.107e-05/0.2973, allocations: 106.6 kB / 0.5583 GB, free: 6.457 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.2974, allocations: 4.375 kB / 0.5583 GB, free: 6.453 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.822e-06/0.2974, allocations: 384 / 0.5583 GB, free: 6.453 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.956e-05/0.2974, allocations: 30.27 kB / 0.5583 GB, free: 6.418 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.2975, allocations: 3.938 kB / 0.5583 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.723e-06/0.2975, allocations: 0 / 0.5583 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.2975, allocations: 0 / 0.5583 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.711e-05/0.2975, allocations: 0 / 0.5583 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001686/0.2977, allocations: 128.8 kB / 0.5584 GB, free: 6.246 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.824e-05/0.2977, allocations: 18.52 kB / 0.5584 GB, free: 6.219 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.623e-05/0.2977, allocations: 4.859 kB / 0.5584 GB, free: 6.211 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.271e-05/0.2977, allocations: 4.094 kB / 0.5585 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.336e-05/0.2978, allocations: 56.27 kB / 0.5585 GB, free: 6.137 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.203e-06/0.2978, allocations: 3.938 kB / 0.5585 GB, free: 6.133 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001727/0.298, allocations: 71.33 kB / 0.5586 GB, free: 6.051 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.752e-05/0.298, allocations: 85.17 kB / 0.5587 GB, free: 5.949 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.153e-05/0.2981, allocations: 97.75 kB / 0.5588 GB, free: 5.844 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.2981, allocations: 25.7 kB / 0.5588 GB, free: 5.812 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.341e-05/0.2981, allocations: 80.14 kB / 0.5589 GB, free: 5.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.2981, allocations: 0 / 0.5589 GB, free: 5.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-05/0.2982, allocations: 13.72 kB / 0.5589 GB, free: 5.711 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.2983, allocations: 310.8 kB / 0.5592 GB, free: 5.398 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.388e-05/0.2983, allocations: 4 kB / 0.5592 GB, free: 5.395 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.675e-06/0.2983, allocations: 8 kB / 0.5592 GB, free: 5.387 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.747e-05/0.2984, allocations: 64.25 kB / 0.5592 GB, free: 5.309 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2984, allocations: 0 / 0.5592 GB, free: 5.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.283e-05/0.2985, allocations: 55.41 kB / 0.5593 GB, free: 5.242 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/0.2985, allocations: 33.7 kB / 0.5593 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.2985, allocations: 7.875 kB / 0.5593 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.2985, allocations: 0 / 0.5593 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.584e-06/0.2985, allocations: 3.984 kB / 0.5593 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.2985, allocations: 96 / 0.5593 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.383e-05/0.2985, allocations: 4 kB / 0.5593 GB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.2985, allocations: 4 kB / 0.5593 GB, free: 5.184 MB / 398.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.467e-05/0.2986, allocations: 135.5 kB / 0.5595 GB, free: 5.035 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.764e-06/0.2986, allocations: 0 / 0.5595 GB, free: 5.035 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.183e-05/0.2987, allocations: 6.938 kB / 0.5595 GB, free: 5.027 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.2987, allocations: 4 kB / 0.5595 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2987, allocations: 0 / 0.5595 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-06/0.2987, allocations: 0 / 0.5595 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.607e-05/0.2988, allocations: 116.8 kB / 0.5596 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.2988, allocations: 4 kB / 0.5596 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.2988, allocations: 0 / 0.5596 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.2988, allocations: 4 kB / 0.5596 GB, free: 4.859 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.2988, allocations: 3.938 kB / 0.5596 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2988, allocations: 0 / 0.5596 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2988, allocations: 0 / 0.5596 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001076/0.2989, allocations: 98.75 kB / 0.5597 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.837e-06/0.2989, allocations: 4.031 kB / 0.5597 GB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/0.2989, allocations: 7.938 kB / 0.5597 GB, free: 4.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.367e-06/0.2989, allocations: 0 / 0.5597 GB, free: 4.723 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.107e-06/0.2989, allocations: 4 kB / 0.5597 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-06/0.2989, allocations: 7.938 kB / 0.5597 GB, free: 4.711 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.503e-05/0.299, allocations: 75.28 kB / 0.5598 GB, free: 4.637 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.299, allocations: 0 / 0.5598 GB, free: 4.637 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002179/0.2992, allocations: 23.86 kB / 0.5598 GB, free: 4.613 MB / 398.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.000758/0.2999, allocations: 0.7057 MB / 0.5605 GB, free: 3.902 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.967e-05/0.3, allocations: 67.33 kB / 0.5606 GB, free: 3.824 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3, allocations: 4 kB / 0.5606 GB, free: 3.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.706e-05/0.3001, allocations: 51.41 kB / 0.5606 GB, free: 3.758 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001302/0.3002, allocations: 6.031 kB / 0.5606 GB, free: 3.754 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003104/0.3005, allocations: 118.6 kB / 0.5607 GB, free: 3.598 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.3008, allocations: 0.673 MB / 0.5614 GB, free: 2.898 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.622e-06/0.3008, allocations: 0 / 0.5614 GB, free: 2.898 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.802e-05/0.3008, allocations: 11.44 kB / 0.5614 GB, free: 2.887 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3008, allocations: 0 / 0.5614 GB, free: 2.887 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02618/0.327, allocations: 1.524 MB / 0.5629 GB, free: 1.492 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.56, allocations: 6.562 kB / 0.5629 GB, free: 1.488 MB / 398.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.334132648073137]