Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001736/0.001736, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002138/0.002138, allocations: 216.4 kB / 23.75 MB, free: 4.668 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.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2322/0.2322, allocations: 46.94 MB / 360.9 MB, free: 4.258 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002164/0.002164, allocations: 67.89 kB / 0.4961 GB, free: 7.906 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3174, allocations: 66.03 MB / 0.5606 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00156/0.319, allocations: 481.1 kB / 0.5611 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005876/0.3196, allocations: 237.6 kB / 0.5613 GB, free: 3.777 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.367e-05/0.3196, allocations: 0 / 0.5613 GB, free: 3.777 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.248e-05/0.3196, allocations: 0 / 0.5613 GB, free: 3.777 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.181e-06/0.3196, allocations: 0 / 0.5613 GB, free: 3.777 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:289:3-320: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.0003317/0.3199, allocations: 47.83 kB / 0.5614 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.806e-05/0.32, allocations: 0 / 0.5614 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.87e-05/0.32, allocations: 0 / 0.5614 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.751e-05/0.3201, allocations: 4 kB / 0.5614 GB, free: 3.727 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.14e-05/0.3201, allocations: 3.984 kB / 0.5614 GB, free: 3.723 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-06/0.3201, allocations: 4 kB / 0.5614 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001368/0.3202, allocations: 55.95 kB / 0.5614 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.402e-06/0.3202, allocations: 0 / 0.5614 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.203e-05/0.3203, allocations: 3.938 kB / 0.5614 GB, free: 3.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.3204, allocations: 47.67 kB / 0.5615 GB, free: 3.617 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.3204, allocations: 0 / 0.5615 GB, free: 3.617 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3204, allocations: 0 / 0.5615 GB, free: 3.617 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.3204, allocations: 4 kB / 0.5615 GB, free: 3.613 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.000349/0.3207, allocations: 278 kB / 0.5617 GB, free: 3.305 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.3208, allocations: 8.031 kB / 0.5617 GB, free: 3.297 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.107e-05/0.3208, allocations: 34.75 kB / 0.5618 GB, free: 3.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.779e-05/0.3209, allocations: 0.9375 kB / 0.5618 GB, free: 3.254 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.898e-05/0.321, allocations: 110.5 kB / 0.5619 GB, free: 3.121 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.321, allocations: 384 / 0.5619 GB, free: 3.121 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.811e-06/0.321, allocations: 384 / 0.5619 GB, free: 3.121 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.404e-05/0.3211, allocations: 30.27 kB / 0.5619 GB, free: 3.086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.3211, allocations: 3.938 kB / 0.5619 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.3211, allocations: 0 / 0.5619 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.3211, allocations: 0 / 0.5619 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.742e-05/0.3211, allocations: 0 / 0.5619 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000149/0.3212, allocations: 132.7 kB / 0.562 GB, free: 2.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.291e-05/0.3213, allocations: 18.52 kB / 0.5621 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.438e-05/0.3213, allocations: 4.859 kB / 0.5621 GB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.554e-06/0.3213, allocations: 0 / 0.5621 GB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.497e-05/0.3214, allocations: 60.36 kB / 0.5621 GB, free: 2.801 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.31e-07/0.3214, allocations: 0 / 0.5621 GB, free: 2.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001762/0.3215, allocations: 75.33 kB / 0.5622 GB, free: 2.715 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.3216, allocations: 77.11 kB / 0.5623 GB, free: 2.621 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.281e-05/0.3217, allocations: 93.81 kB / 0.5624 GB, free: 2.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.3217, allocations: 25.7 kB / 0.5624 GB, free: 2.488 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.222e-05/0.3217, allocations: 80.14 kB / 0.5625 GB, free: 2.406 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.016e-05/0.3217, allocations: 3.938 kB / 0.5625 GB, free: 2.402 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.932e-05/0.3217, allocations: 17.66 kB / 0.5625 GB, free: 2.379 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3219, allocations: 318.8 kB / 0.5628 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.838e-06/0.3219, allocations: 4.125 kB / 0.5628 GB, free: 2.055 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.803e-06/0.3219, allocations: 4 kB / 0.5628 GB, free: 2.051 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.181e-05/0.322, allocations: 56.27 kB / 0.5629 GB, free: 1.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.322, allocations: 0 / 0.5629 GB, free: 1.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.759e-05/0.322, allocations: 59.41 kB / 0.5629 GB, free: 1.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.669e-05/0.3221, allocations: 37.69 kB / 0.5629 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3221, allocations: 3.938 kB / 0.5629 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.3221, allocations: 0 / 0.5629 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.12e-07/0.3221, allocations: 96 / 0.5629 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3221, allocations: 7.938 kB / 0.563 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.451e-05/0.3221, allocations: 0 / 0.563 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.812e-06/0.3221, allocations: 7.922 kB / 0.563 GB, free: 1.848 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 0.0001044/0.3222, allocations: 143.5 kB / 0.5631 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.3222, allocations: 0 / 0.5631 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.152e-05/0.3222, allocations: 6.938 kB / 0.5631 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3222, allocations: 0 / 0.5631 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3222, allocations: 4 kB / 0.5631 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.3222, allocations: 3.984 kB / 0.5631 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.609e-05/0.3223, allocations: 116.8 kB / 0.5632 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.3223, allocations: 0 / 0.5632 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.3223, allocations: 0 / 0.5632 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.3223, allocations: 4 kB / 0.5632 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.3224, allocations: 7.938 kB / 0.5632 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3224, allocations: 0 / 0.5632 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3224, allocations: 0 / 0.5632 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000105/0.3225, allocations: 94.83 kB / 0.5633 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.238e-06/0.3225, allocations: 0 / 0.5633 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.3225, allocations: 3.938 kB / 0.5633 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.616e-06/0.3225, allocations: 0 / 0.5633 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.358e-05/0.3225, allocations: 11.92 kB / 0.5633 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/0.3225, allocations: 7.984 kB / 0.5633 GB, free: 1.367 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.169e-05/0.3225, allocations: 75.28 kB / 0.5634 GB, free: 1.293 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3225, allocations: 0 / 0.5634 GB, free: 1.293 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002223/0.3228, allocations: 15.94 kB / 0.5634 GB, free: 1.277 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.0007291/0.3235, allocations: 0.7145 MB / 0.5641 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.187e-05/0.3236, allocations: 59.41 kB / 0.5642 GB, free: 500 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3236, allocations: 3.938 kB / 0.5642 GB, free: 496 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.586e-05/0.3236, allocations: 55.41 kB / 0.5642 GB, free: 428 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001215/0.3237, allocations: 6.188 kB / 0.5643 GB, free: 424 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002892/0.324, allocations: 122.8 kB / 0.5644 GB, free: 260 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.3243, allocations: 0.669 MB / 0.565 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.16e-06/0.3243, allocations: 0 / 0.565 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.424e-05/0.3244, allocations: 11.42 kB / 0.565 GB, free: 15.55 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3244, allocations: 0 / 0.565 GB, free: 15.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02632/0.3507, allocations: 1.525 MB / 0.5665 GB, free: 14.15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.56, allocations: 11.12 kB / 0.5665 GB, free: 14.14 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.345266913995147]