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.001324/0.001324, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001467/0.001467, allocations: 208.2 kB / 24.48 MB, free: 3.977 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.463/1.463, allocations: 230.6 MB / 258.2 MB, free: 7.797 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.2335/0.2335, allocations: 46.96 MB / 361.6 MB, free: 4.055 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: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 63.88 kB / 0.4973 GB, free: 7.262 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3046, allocations: 66.04 MB / 0.5618 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001663/0.3063, allocations: 493 kB / 0.5623 GB, free: 3.703 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006057/0.3069, allocations: 213.7 kB / 0.5625 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.373e-05/0.3069, allocations: 0 / 0.5625 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.759e-05/0.3069, allocations: 0 / 0.5625 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.881e-06/0.307, allocations: 0 / 0.5625 GB, free: 3.496 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.0003055/0.3073, allocations: 51.83 kB / 0.5625 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.027e-05/0.3073, allocations: 7.984 kB / 0.5625 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.023e-05/0.3074, allocations: 0 / 0.5625 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.467e-05/0.3074, allocations: 0 / 0.5625 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.439e-05/0.3074, allocations: 0 / 0.5625 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.856e-06/0.3074, allocations: 4 kB / 0.5625 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.3075, allocations: 51.89 kB / 0.5626 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.644e-06/0.3076, allocations: 0 / 0.5626 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.292e-05/0.3076, allocations: 4 kB / 0.5626 GB, free: 3.379 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.3077, allocations: 51.66 kB / 0.5626 GB, free: 3.332 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3077, allocations: 0 / 0.5626 GB, free: 3.332 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3077, allocations: 4 kB / 0.5626 GB, free: 3.328 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.3077, allocations: 0 / 0.5626 GB, free: 3.328 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.0003512/0.3081, allocations: 274.6 kB / 0.5629 GB, free: 3.027 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.3081, allocations: 12.03 kB / 0.5629 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.741e-05/0.3081, allocations: 0.9375 kB / 0.5629 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.82e-05/0.3082, allocations: 102.5 kB / 0.563 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.3082, allocations: 384 / 0.563 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.3082, allocations: 384 / 0.563 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001011/0.3083, allocations: 55.97 kB / 0.5631 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.3084, allocations: 4.172 kB / 0.5631 GB, free: 2.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-06/0.3084, allocations: 7.938 kB / 0.5631 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.83e-06/0.3084, allocations: 0 / 0.5631 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.331e-05/0.3084, allocations: 37.64 kB / 0.5631 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001193/0.3085, allocations: 101.3 kB / 0.5632 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.89e-05/0.3086, allocations: 44.31 kB / 0.5632 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.374e-05/0.3086, allocations: 34.5 kB / 0.5633 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.51e-06/0.3086, allocations: 64 / 0.5633 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.893e-05/0.3087, allocations: 68.25 kB / 0.5633 GB, free: 2.457 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3087, allocations: 0 / 0.5633 GB, free: 2.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002445/0.3089, allocations: 118.7 kB / 0.5635 GB, free: 2.316 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.179e-05/0.309, allocations: 81.23 kB / 0.5635 GB, free: 2.219 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.454e-05/0.3091, allocations: 93.81 kB / 0.5636 GB, free: 2.117 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.3091, allocations: 33.69 kB / 0.5637 GB, free: 2.078 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.543e-05/0.3091, allocations: 88.08 kB / 0.5637 GB, free: 1.988 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.293e-05/0.3091, allocations: 0 / 0.5637 GB, free: 1.988 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.3092, allocations: 9.719 kB / 0.5637 GB, free: 1.973 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.3093, allocations: 314.8 kB / 0.564 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.508e-05/0.3093, allocations: 25.7 kB / 0.5641 GB, free: 1.625 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.158e-05/0.3094, allocations: 25.7 kB / 0.5641 GB, free: 1.594 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.05e-05/0.3094, allocations: 64.33 kB / 0.5642 GB, free: 1.516 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.3094, allocations: 4 kB / 0.5642 GB, free: 1.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.646e-05/0.3095, allocations: 93.03 kB / 0.5643 GB, free: 1.402 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.3095, allocations: 33.7 kB / 0.5643 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.3095, allocations: 0 / 0.5643 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.3096, allocations: 0 / 0.5643 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.186e-06/0.3096, allocations: 3.938 kB / 0.5643 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.3096, allocations: 0 / 0.5643 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.454e-05/0.3096, allocations: 0 / 0.5643 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-06/0.3096, allocations: 0 / 0.5643 GB, free: 1.359 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.867e-05/0.3097, allocations: 147.6 kB / 0.5644 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.065e-06/0.3097, allocations: 0 / 0.5644 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.227e-05/0.3097, allocations: 3 kB / 0.5644 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.3097, allocations: 11.92 kB / 0.5644 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3097, allocations: 0 / 0.5644 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.3097, allocations: 0 / 0.5644 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.584e-05/0.3098, allocations: 93.33 kB / 0.5645 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.3098, allocations: 3.984 kB / 0.5645 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3098, allocations: 0 / 0.5645 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.3098, allocations: 0 / 0.5645 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.3098, allocations: 4 kB / 0.5645 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3098, allocations: 4 kB / 0.5645 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3098, allocations: 3.938 kB / 0.5645 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001275/0.31, allocations: 120.5 kB / 0.5647 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.517e-06/0.31, allocations: 0 / 0.5647 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.088e-05/0.31, allocations: 0 / 0.5647 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.325e-06/0.31, allocations: 4 kB / 0.5647 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.731e-05/0.31, allocations: 3.938 kB / 0.5647 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-06/0.31, allocations: 7.938 kB / 0.5647 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.688e-05/0.31, allocations: 75.28 kB / 0.5647 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.31, allocations: 3.938 kB / 0.5648 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002172/0.3103, allocations: 19.97 kB / 0.5648 GB, free: 0.7852 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.0004476/0.3107, allocations: 198.2 kB / 0.565 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001234/0.3108, allocations: 114.7 kB / 0.5651 GB, free: 492 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3108, allocations: 4 kB / 0.5651 GB, free: 488 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.33e-05/0.3109, allocations: 81.11 kB / 0.5651 GB, free: 388 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001224/0.311, allocations: 4 kB / 0.5652 GB, free: 384 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002051/0.3112, allocations: 110.7 kB / 0.5653 GB, free: 240 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.725e-05/0.3113, allocations: 55.36 kB / 0.5653 GB, free: 164 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.029e-06/0.3113, allocations: 0 / 0.5653 GB, free: 164 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.253e-05/0.3113, allocations: 7.438 kB / 0.5653 GB, free: 156 kB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3113, allocations: 4.125 kB / 0.5653 GB, free: 152 kB / 398.1 MB Notification: Performance of Templates: time 0.003286/0.3146, allocations: 0.5906 MB / 0.5659 GB, free: 15.56 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] 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: 4.84622831598972]