Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001652/0.001652, allocations: 116.7 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00215/0.00215, allocations: 213.6 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 230.5 MB / 257.4 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2301/0.2301, allocations: 46.92 MB / 360.8 MB, free: 4.16 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002336/0.002336, allocations: 75.88 kB / 0.4962 GB, free: 7.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2808, allocations: 66.09 MB / 0.5607 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00154/0.2824, allocations: 473.1 kB / 0.5612 GB, free: 3.781 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005741/0.2829, allocations: 229.6 kB / 0.5614 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.003e-05/0.283, allocations: 0 / 0.5614 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.491e-05/0.283, allocations: 0 / 0.5614 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.839e-06/0.283, allocations: 0 / 0.5614 GB, free: 3.559 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:300:3-331: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.0002904/0.2833, allocations: 51.83 kB / 0.5614 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.244e-05/0.2833, allocations: 3.984 kB / 0.5614 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.978e-05/0.2834, allocations: 4 kB / 0.5614 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.502e-05/0.2834, allocations: 4 kB / 0.5615 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.182e-05/0.2834, allocations: 0 / 0.5615 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.481e-06/0.2834, allocations: 0 / 0.5615 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001314/0.2835, allocations: 51.95 kB / 0.5615 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.673e-06/0.2835, allocations: 0 / 0.5615 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.277e-05/0.2836, allocations: 4 kB / 0.5615 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.2837, allocations: 47.66 kB / 0.5616 GB, free: 3.398 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2837, allocations: 0 / 0.5616 GB, free: 3.398 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2837, allocations: 0 / 0.5616 GB, free: 3.398 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.381e-06/0.2837, allocations: 4 kB / 0.5616 GB, free: 3.395 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.0003535/0.284, allocations: 282 kB / 0.5618 GB, free: 3.082 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.2841, allocations: 8.031 kB / 0.5618 GB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.049e-05/0.2841, allocations: 30.75 kB / 0.5619 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.221e-05/0.2841, allocations: 0.9375 kB / 0.5619 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.12e-05/0.2842, allocations: 110.5 kB / 0.562 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.2842, allocations: 384 / 0.562 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.2843, allocations: 4.375 kB / 0.562 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.539e-05/0.2843, allocations: 34.25 kB / 0.562 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.2843, allocations: 7.938 kB / 0.562 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.713e-06/0.2844, allocations: 0 / 0.562 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.476e-06/0.2844, allocations: 0 / 0.562 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.808e-05/0.2844, allocations: 7.922 kB / 0.562 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001408/0.2845, allocations: 120.8 kB / 0.5621 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.674e-05/0.2846, allocations: 18.52 kB / 0.5622 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.518e-05/0.2846, allocations: 8.859 kB / 0.5622 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.133e-06/0.2846, allocations: 0 / 0.5622 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.515e-05/0.2846, allocations: 64.36 kB / 0.5622 GB, free: 2.566 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.2846, allocations: 0 / 0.5622 GB, free: 2.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001671/0.2848, allocations: 67.33 kB / 0.5623 GB, free: 2.488 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.2849, allocations: 77.11 kB / 0.5624 GB, free: 2.395 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.818e-05/0.2849, allocations: 93.81 kB / 0.5624 GB, free: 2.293 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.2849, allocations: 25.7 kB / 0.5625 GB, free: 2.262 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.597e-05/0.285, allocations: 84.14 kB / 0.5626 GB, free: 2.176 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.385e-05/0.285, allocations: 4.062 kB / 0.5626 GB, free: 2.172 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.944e-05/0.285, allocations: 21.66 kB / 0.5626 GB, free: 2.145 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.2852, allocations: 314.8 kB / 0.5629 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.867e-06/0.2852, allocations: 0 / 0.5629 GB, free: 1.828 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.214e-06/0.2852, allocations: 4 kB / 0.5629 GB, free: 1.824 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.355e-05/0.2852, allocations: 56.27 kB / 0.5629 GB, free: 1.754 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2852, allocations: 0 / 0.5629 GB, free: 1.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.144e-05/0.2853, allocations: 63.41 kB / 0.563 GB, free: 1.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.2853, allocations: 41.78 kB / 0.563 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2854, allocations: 3.938 kB / 0.563 GB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.2854, allocations: 0 / 0.563 GB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.51e-07/0.2854, allocations: 0 / 0.563 GB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.2854, allocations: 3.938 kB / 0.563 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.466e-05/0.2854, allocations: 0 / 0.563 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-06/0.2854, allocations: 0 / 0.563 GB, free: 1.625 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.8e-05/0.2855, allocations: 135.5 kB / 0.5632 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.083e-06/0.2855, allocations: 0 / 0.5632 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.143e-05/0.2855, allocations: 10.94 kB / 0.5632 GB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.2855, allocations: 3.984 kB / 0.5632 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2855, allocations: 4 kB / 0.5632 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.2855, allocations: 0 / 0.5632 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001037/0.2856, allocations: 116.8 kB / 0.5633 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.2856, allocations: 0 / 0.5633 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.8e-07/0.2856, allocations: 0 / 0.5633 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.2856, allocations: 0 / 0.5633 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.2856, allocations: 7.938 kB / 0.5633 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.2856, allocations: 0 / 0.5633 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2856, allocations: 0 / 0.5633 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001021/0.2857, allocations: 94.83 kB / 0.5634 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.086e-06/0.2857, allocations: 0 / 0.5634 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.2858, allocations: 7.875 kB / 0.5634 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.775e-06/0.2858, allocations: 0 / 0.5634 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.85e-05/0.2858, allocations: 11.92 kB / 0.5634 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.2858, allocations: 4 kB / 0.5634 GB, free: 1.152 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.112e-05/0.2858, allocations: 75.28 kB / 0.5635 GB, free: 1.078 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2858, allocations: 4.031 kB / 0.5635 GB, free: 1.074 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002103/0.286, allocations: 19.94 kB / 0.5635 GB, free: 1.055 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.0007555/0.2868, allocations: 0.7047 MB / 0.5642 GB, free: 344 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001009/0.2869, allocations: 55.41 kB / 0.5643 GB, free: 276 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2869, allocations: 3.938 kB / 0.5643 GB, free: 272 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.779e-05/0.2869, allocations: 59.47 kB / 0.5643 GB, free: 200 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001269/0.2871, allocations: 7.938 kB / 0.5643 GB, free: 192 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003121/0.2874, allocations: 118.6 kB / 0.5644 GB, free: 32 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003499/0.2877, allocations: 0.669 MB / 0.5651 GB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.193e-06/0.2877, allocations: 3.984 kB / 0.5651 GB, free: 15.33 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.246e-05/0.2877, allocations: 7.438 kB / 0.5651 GB, free: 15.32 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2877, allocations: 0 / 0.5651 GB, free: 15.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.3141, allocations: 1.529 MB / 0.5666 GB, free: 13.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.51, allocations: 10.19 kB / 0.5666 GB, free: 13.89 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.342716852901503]