Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001256/0.001256, allocations: 112.4 kB / 21.17 MB, free: 0.6172 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.001443/0.001443, allocations: 205.6 kB / 24.46 MB, free: 4.023 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.471/1.471, allocations: 230.2 MB / 257.8 MB, free: 8.508 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2316/0.2316, allocations: 46.9 MB / 361.1 MB, free: 4.637 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-beta.om/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: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002376/0.002376, allocations: 75.88 kB / 0.4967 GB, free: 7.852 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.3159, allocations: 65.98 MB / 0.5612 GB, free: 5.035 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001765/0.3177, allocations: 485 kB / 0.5616 GB, free: 4.562 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006594/0.3184, allocations: 229.6 kB / 0.5618 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.469e-05/0.3184, allocations: 0 / 0.5618 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.573e-05/0.3184, allocations: 0 / 0.5618 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.382e-06/0.3184, allocations: 0 / 0.5618 GB, free: 4.34 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0003298/0.3188, allocations: 43.83 kB / 0.5619 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.132e-05/0.3188, allocations: 4 kB / 0.5619 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.217e-05/0.3189, allocations: 0 / 0.5619 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.734e-05/0.3189, allocations: 0 / 0.5619 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.937e-05/0.3189, allocations: 7.922 kB / 0.5619 GB, free: 4.285 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.402e-06/0.3189, allocations: 0 / 0.5619 GB, free: 4.285 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001566/0.3191, allocations: 59.95 kB / 0.562 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.077e-06/0.3191, allocations: 0 / 0.562 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.944e-05/0.3191, allocations: 0 / 0.562 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001413/0.3192, allocations: 47.73 kB / 0.562 GB, free: 4.184 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.3192, allocations: 0 / 0.562 GB, free: 4.184 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3192, allocations: 0 / 0.562 GB, free: 4.184 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.3192, allocations: 0 / 0.562 GB, free: 4.184 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.0004386/0.3197, allocations: 348.2 kB / 0.5623 GB, free: 3.789 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3197, allocations: 8.031 kB / 0.5623 GB, free: 3.781 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.784e-05/0.3198, allocations: 0.9375 kB / 0.5623 GB, free: 3.781 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.3199, allocations: 164.4 kB / 0.5625 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-06/0.3199, allocations: 384 / 0.5625 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.323e-05/0.3199, allocations: 8.312 kB / 0.5625 GB, free: 3.574 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.836e-05/0.32, allocations: 42.17 kB / 0.5626 GB, free: 3.527 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.32, allocations: 192 / 0.5626 GB, free: 3.527 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.32, allocations: 3.938 kB / 0.5626 GB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-06/0.32, allocations: 4 kB / 0.5626 GB, free: 3.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.619e-05/0.32, allocations: 0 / 0.5626 GB, free: 3.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001601/0.3202, allocations: 141.7 kB / 0.5627 GB, free: 3.332 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.707e-05/0.3202, allocations: 22.61 kB / 0.5627 GB, free: 3.301 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.403e-05/0.3203, allocations: 4.859 kB / 0.5627 GB, free: 3.293 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-06/0.3203, allocations: 3.938 kB / 0.5627 GB, free: 3.289 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.719e-05/0.3203, allocations: 72.19 kB / 0.5628 GB, free: 3.203 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.3203, allocations: 0 / 0.5628 GB, free: 3.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001764/0.3205, allocations: 63.41 kB / 0.5629 GB, free: 3.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.821e-05/0.3206, allocations: 85.23 kB / 0.5629 GB, free: 3.027 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.827e-05/0.3206, allocations: 93.81 kB / 0.563 GB, free: 2.926 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.3206, allocations: 25.7 kB / 0.563 GB, free: 2.895 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.292e-05/0.3207, allocations: 80.14 kB / 0.5631 GB, free: 2.812 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.376e-05/0.3207, allocations: 3.938 kB / 0.5631 GB, free: 2.809 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.185e-05/0.3207, allocations: 21.7 kB / 0.5631 GB, free: 2.781 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.3209, allocations: 310.8 kB / 0.5634 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.073e-05/0.3209, allocations: 0 / 0.5634 GB, free: 2.469 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.216e-06/0.3209, allocations: 4 kB / 0.5634 GB, free: 2.465 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.088e-05/0.321, allocations: 64.2 kB / 0.5635 GB, free: 2.387 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.321, allocations: 0 / 0.5635 GB, free: 2.387 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.881e-05/0.3211, allocations: 67.39 kB / 0.5636 GB, free: 2.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.852e-05/0.3211, allocations: 29.7 kB / 0.5636 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.3211, allocations: 0 / 0.5636 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.3211, allocations: 3.938 kB / 0.5636 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.162e-06/0.3211, allocations: 4 kB / 0.5636 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.3211, allocations: 0 / 0.5636 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.742e-05/0.3212, allocations: 4.094 kB / 0.5636 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.3212, allocations: 0 / 0.5636 GB, free: 2.262 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.3213, allocations: 135.5 kB / 0.5637 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.478e-06/0.3213, allocations: 3.984 kB / 0.5637 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.284e-05/0.3213, allocations: 7.062 kB / 0.5638 GB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.3213, allocations: 0 / 0.5638 GB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.3213, allocations: 3.938 kB / 0.5638 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3213, allocations: 3.938 kB / 0.5638 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.3214, allocations: 145.7 kB / 0.5639 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3214, allocations: 4 kB / 0.5639 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-07/0.3214, allocations: 0 / 0.5639 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.3214, allocations: 3.984 kB / 0.5639 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.3214, allocations: 3.938 kB / 0.5639 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.3214, allocations: 0 / 0.5639 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.3214, allocations: 0 / 0.5639 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001129/0.3216, allocations: 90.84 kB / 0.564 GB, free: 1.777 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.206e-05/0.3216, allocations: 81.09 kB / 0.5641 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.3216, allocations: 11.97 kB / 0.5641 GB, free: 1.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.626e-06/0.3216, allocations: 0 / 0.5641 GB, free: 1.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.778e-06/0.3216, allocations: 0 / 0.5641 GB, free: 1.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.3216, allocations: 0 / 0.5641 GB, free: 1.668 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.425e-05/0.3217, allocations: 79.22 kB / 0.5642 GB, free: 1.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3217, allocations: 0 / 0.5642 GB, free: 1.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002072/0.3219, allocations: 15.94 kB / 0.5642 GB, free: 1.574 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.0004714/0.3223, allocations: 215.7 kB / 0.5644 GB, free: 1.391 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001147/0.3225, allocations: 63.39 kB / 0.5644 GB, free: 1.316 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3225, allocations: 0 / 0.5644 GB, free: 1.316 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.559e-05/0.3225, allocations: 55.41 kB / 0.5645 GB, free: 1.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001144/0.3226, allocations: 0 / 0.5645 GB, free: 1.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002031/0.3228, allocations: 92.94 kB / 0.5646 GB, free: 1.133 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002928/0.3231, allocations: 0.6729 MB / 0.5652 GB, free: 444 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.789e-06/0.3231, allocations: 0 / 0.5652 GB, free: 444 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.131e-05/0.3231, allocations: 15.56 kB / 0.5653 GB, free: 428 kB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3231, allocations: 0 / 0.5653 GB, free: 428 kB / 398.1 MB Notification: Performance of Templates: time 0.00361/0.3267, allocations: 0.5835 MB / 0.5658 GB, free: 15.84 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.910830372944474]