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.001307/0.001307, allocations: 80.41 kB / 22.21 MB, free: 2.285 MB / 18.57 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.001426/0.001426, allocations: 169.8 kB / 25.61 MB, free: 8.902 MB / 18.57 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.045/1.045, allocations: 177.1 MB / 206 MB, free: 4.496 MB / 186.7 MB " [Timeout remaining time 179] 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.16/0.16, allocations: 34.26 MB / 296.9 MB, free: 13.92 MB / 282.7 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 1.864e-06/1.864e-06, allocations: 0 / 379.2 MB, free: 23.46 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.731e-05/2.918e-05, allocations: 6.25 kB / 379.3 MB, free: 23.45 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001662/0.001692, allocations: 493 kB / 379.7 MB, free: 22.97 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004779/0.002169, allocations: 219.5 kB / 379.9 MB, free: 22.75 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.616e-05/0.002196, allocations: 4 kB / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.534e-05/0.002211, allocations: 0 / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.921e-06/0.002217, allocations: 3.938 kB / 380 MB, free: 22.75 MB / 314.7 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.0002787/0.002496, allocations: 43.83 kB / 380 MB, free: 22.7 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.104e-05/0.002547, allocations: 3.984 kB / 380 MB, free: 22.7 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.902e-05/0.002586, allocations: 7.938 kB / 380 MB, free: 22.69 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.568e-05/0.002611, allocations: 0 / 380 MB, free: 22.69 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.612e-05/0.002637, allocations: 4 kB / 380 MB, free: 22.69 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.364e-06/0.002645, allocations: 0 / 380 MB, free: 22.69 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.002763, allocations: 43.95 kB / 380.1 MB, free: 22.64 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.085e-06/0.002771, allocations: 0 / 380.1 MB, free: 22.64 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.706e-05/0.002788, allocations: 8 kB / 380.1 MB, free: 22.64 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.0029, allocations: 55.8 kB / 380.1 MB, free: 22.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.002903, allocations: 0 / 380.1 MB, free: 22.58 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.002903, allocations: 0 / 380.1 MB, free: 22.58 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.002907, allocations: 0 / 380.1 MB, free: 22.58 MB / 314.7 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.0002244/0.003132, allocations: 374 kB / 380.5 MB, free: 22.17 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.003171, allocations: 12.03 kB / 380.5 MB, free: 22.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.225e-05/0.003203, allocations: 0.9375 kB / 380.5 MB, free: 22.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.675e-05/0.00325, allocations: 104.6 kB / 380.6 MB, free: 22.03 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.003261, allocations: 4.312 kB / 380.6 MB, free: 22.03 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.113e-06/0.003268, allocations: 4.375 kB / 380.6 MB, free: 22.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.648e-05/0.003335, allocations: 59.97 kB / 380.7 MB, free: 21.95 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.003343, allocations: 4.172 kB / 380.7 MB, free: 21.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.471e-06/0.003349, allocations: 384 / 380.7 MB, free: 21.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.003354, allocations: 4.375 kB / 380.7 MB, free: 21.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.514e-05/0.003369, allocations: 29.64 kB / 380.7 MB, free: 21.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.382e-05/0.003433, allocations: 93.27 kB / 380.8 MB, free: 21.79 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.783e-05/0.00347, allocations: 52.7 kB / 380.8 MB, free: 21.72 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.31e-05/0.003483, allocations: 33.39 kB / 380.9 MB, free: 21.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.176e-06/0.003487, allocations: 4.094 kB / 380.9 MB, free: 21.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/0.003512, allocations: 67.08 kB / 381 MB, free: 21.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.003513, allocations: 0 / 381 MB, free: 21.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001451/0.003658, allocations: 114.8 kB / 381.1 MB, free: 21.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.702e-05/0.003685, allocations: 77.11 kB / 381.1 MB, free: 21.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.287e-05/0.003708, allocations: 150.2 kB / 381.3 MB, free: 21.2 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.909e-06/0.003713, allocations: 25.7 kB / 381.3 MB, free: 21.17 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.323e-05/0.003726, allocations: 130.9 kB / 381.4 MB, free: 21.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.481e-05/0.003741, allocations: 3.938 kB / 381.4 MB, free: 21.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.464e-05/0.003765, allocations: 23.31 kB / 381.5 MB, free: 21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.616e-05/0.003811, allocations: 500 kB / 382 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.441e-05/0.003826, allocations: 29.83 kB / 382 MB, free: 20.47 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.789e-06/0.003836, allocations: 29.7 kB / 382 MB, free: 20.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.38e-05/0.003869, allocations: 59.09 kB / 382.1 MB, free: 20.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.003871, allocations: 0 / 382.1 MB, free: 20.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.25e-05/0.003934, allocations: 93.09 kB / 382.2 MB, free: 20.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.003959, allocations: 35.73 kB / 382.2 MB, free: 20.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.003964, allocations: 0 / 382.2 MB, free: 20.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.107e-06/0.003973, allocations: 0 / 382.2 MB, free: 20.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.312e-06/0.003974, allocations: 0 / 382.2 MB, free: 20.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.775e-06/0.003977, allocations: 4.031 kB / 382.2 MB, free: 20.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.391e-05/0.003991, allocations: 4 kB / 382.2 MB, free: 20.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/0.003998, allocations: 4 kB / 382.2 MB, free: 20.2 MB / 314.7 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 4.969e-05/0.004047, allocations: 186.2 kB / 382.4 MB, free: 20 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.298e-06/0.004057, allocations: 4.344 kB / 382.4 MB, free: 20 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.897e-06/0.004065, allocations: 6.984 kB / 382.4 MB, free: 19.99 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.004067, allocations: 0 / 382.4 MB, free: 19.99 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.004069, allocations: 0 / 382.4 MB, free: 19.99 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.004071, allocations: 0 / 382.4 MB, free: 19.99 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.681e-05/0.004118, allocations: 93.2 kB / 382.5 MB, free: 19.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.004119, allocations: 4 kB / 382.5 MB, free: 19.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.62e-07/0.00412, allocations: 4 kB / 382.5 MB, free: 19.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.004122, allocations: 4 kB / 382.5 MB, free: 19.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.04e-06/0.004127, allocations: 3.984 kB / 382.5 MB, free: 19.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.004128, allocations: 0 / 382.5 MB, free: 19.86 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.00413, allocations: 0 / 382.5 MB, free: 19.86 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.945e-05/0.00422, allocations: 135.7 kB / 382.6 MB, free: 19.69 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.544e-06/0.004227, allocations: 11.92 kB / 382.6 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.004238, allocations: 0 / 382.6 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.017e-05/0.004249, allocations: 0 / 382.6 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.576e-06/0.004257, allocations: 0 / 382.6 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-06/0.004261, allocations: 8.031 kB / 382.7 MB, free: 19.67 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.533e-05/0.004276, allocations: 123.2 kB / 382.8 MB, free: 19.55 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.004276, allocations: 0 / 382.8 MB, free: 19.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002349/0.004511, allocations: 19.94 kB / 382.8 MB, free: 19.53 MB / 314.7 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.0004323/0.004944, allocations: 206.8 kB / 383 MB, free: 19.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.759e-05/0.005031, allocations: 122.5 kB / 383.1 MB, free: 19.21 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.005033, allocations: 0 / 383.1 MB, free: 19.21 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.247e-05/0.005055, allocations: 88.8 kB / 383.2 MB, free: 19.1 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001176/0.005173, allocations: 3.938 kB / 383.2 MB, free: 19.1 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001562/0.005329, allocations: 123.7 kB / 383.3 MB, free: 18.94 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.878e-05/0.005358, allocations: 59.22 kB / 383.4 MB, free: 18.86 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.292e-06/0.005364, allocations: 0 / 383.4 MB, free: 18.86 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.628e-05/0.0054, allocations: 70.2 kB / 383.5 MB, free: 18.79 MB / 314.7 MB Notification: Performance of SimCode: time 7.41e-07/0.005401, allocations: 0 / 383.5 MB, free: 18.79 MB / 314.7 MB Notification: Performance of Templates: time 0.002694/0.008095, allocations: 0.6928 MB / 384.1 MB, free: 18.1 MB / 314.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.217079128138721]