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.001469/0.001469, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 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.001605/0.001605, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 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.512/1.512, allocations: 177 MB / 204.4 MB, free: 5.617 MB / 186.7 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.3617/0.3617, allocations: 34.25 MB / 295.2 MB, free: 0.6289 MB / 266.7 MB " [Timeout remaining time 179] 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: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.913e-06/1.913e-06, allocations: 0 / 377.2 MB, free: 2.926 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.922e-05/3.113e-05, allocations: 6.25 kB / 377.2 MB, free: 2.918 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001473/0.001504, allocations: 498.4 kB / 377.7 MB, free: 2.43 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006178/0.002122, allocations: 215.6 kB / 377.9 MB, free: 2.219 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.27e-05/0.002155, allocations: 0 / 377.9 MB, free: 2.219 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.307e-05/0.002168, allocations: 0 / 377.9 MB, free: 2.219 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.019e-06/0.002173, allocations: 0 / 377.9 MB, free: 2.219 MB / 346.7 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.0003274/0.0025, allocations: 51.7 kB / 377.9 MB, free: 2.168 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.053e-05/0.002561, allocations: 0 / 377.9 MB, free: 2.168 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.091e-05/0.002602, allocations: 0 / 377.9 MB, free: 2.168 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.116e-05/0.002633, allocations: 8 kB / 377.9 MB, free: 2.16 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.38e-05/0.002667, allocations: 0 / 377.9 MB, free: 2.16 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.776e-06/0.002675, allocations: 0 / 377.9 MB, free: 2.16 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001595/0.002835, allocations: 51.94 kB / 378 MB, free: 2.109 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.188e-06/0.002844, allocations: 0 / 378 MB, free: 2.109 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.981e-05/0.002874, allocations: 0 / 378 MB, free: 2.109 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.003038, allocations: 55.75 kB / 378 MB, free: 2.055 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.003041, allocations: 0 / 378 MB, free: 2.055 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.003042, allocations: 0 / 378 MB, free: 2.055 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.988e-06/0.003046, allocations: 0 / 378 MB, free: 2.055 MB / 346.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.0004149/0.00346, allocations: 276 kB / 378.3 MB, free: 1.746 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.003514, allocations: 12.03 kB / 378.3 MB, free: 1.734 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.6e-05/0.00356, allocations: 4.938 kB / 378.3 MB, free: 1.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.00367, allocations: 109.7 kB / 378.4 MB, free: 1.598 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.445e-05/0.003684, allocations: 4.375 kB / 378.4 MB, free: 1.594 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.555e-06/0.003692, allocations: 384 / 378.4 MB, free: 1.594 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001124/0.003804, allocations: 59.91 kB / 378.5 MB, free: 1.523 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.003812, allocations: 192 / 378.5 MB, free: 1.523 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-06/0.003821, allocations: 384 / 378.5 MB, free: 1.523 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.003826, allocations: 384 / 378.5 MB, free: 1.523 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.692e-05/0.003862, allocations: 29.64 kB / 378.5 MB, free: 1.488 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001443/0.004007, allocations: 101.3 kB / 378.6 MB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.942e-05/0.004076, allocations: 48.27 kB / 378.7 MB, free: 1.297 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.765e-05/0.004114, allocations: 34.66 kB / 378.7 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.486e-06/0.004122, allocations: 0 / 378.7 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.511e-05/0.004187, allocations: 64.27 kB / 378.8 MB, free: 1.176 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 3.186e-06/0.004191, allocations: 7.922 kB / 378.8 MB, free: 1.168 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002406/0.004431, allocations: 118.8 kB / 378.9 MB, free: 1.027 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.361e-05/0.004505, allocations: 81.11 kB / 379 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.302e-05/0.004568, allocations: 89.86 kB / 379.1 MB, free: 0.832 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.004592, allocations: 25.7 kB / 379.1 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.689e-05/0.004639, allocations: 80.27 kB / 379.2 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.524e-05/0.004654, allocations: 4 kB / 379.2 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.45e-05/0.004688, allocations: 17.72 kB / 379.2 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.00487, allocations: 314.8 kB / 379.5 MB, free: 384 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.865e-05/0.004899, allocations: 29.64 kB / 379.5 MB, free: 348 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.535e-05/0.004934, allocations: 33.69 kB / 379.6 MB, free: 308 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.707e-05/0.005011, allocations: 64.2 kB / 379.6 MB, free: 228 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.005013, allocations: 0 / 379.6 MB, free: 228 kB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001059/0.005119, allocations: 89.11 kB / 379.7 MB, free: 120 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.591e-05/0.005164, allocations: 33.69 kB / 379.7 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.005169, allocations: 4.094 kB / 379.7 MB, free: 76 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.005185, allocations: 0 / 379.7 MB, free: 76 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.005186, allocations: 0 / 379.7 MB, free: 76 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.005193, allocations: 4 kB / 379.7 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.754e-05/0.005211, allocations: 3.938 kB / 379.7 MB, free: 68 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.301e-06/0.005217, allocations: 0 / 379.7 MB, free: 68 kB / 346.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 0.0001404/0.005357, allocations: 135.5 kB / 379.9 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.086e-05/0.005368, allocations: 3.953 kB / 379.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.927e-06/0.005377, allocations: 3 kB / 379.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.005382, allocations: 3.984 kB / 379.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.005386, allocations: 4 kB / 379.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.005388, allocations: 0 / 379.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001034/0.005492, allocations: 113.2 kB / 380 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.005492, allocations: 0 / 380 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.005493, allocations: 0 / 380 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.005494, allocations: 0 / 380 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.005501, allocations: 0 / 380 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.005502, allocations: 4 kB / 380 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.005503, allocations: 0 / 380 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000142/0.005645, allocations: 120.5 kB / 380.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.867e-06/0.005649, allocations: 32 / 380.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/0.005662, allocations: 4 kB / 380.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.136e-05/0.005673, allocations: 4 kB / 380.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.892e-05/0.005692, allocations: 3.984 kB / 380.1 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-06/0.005694, allocations: 0 / 380.1 MB, free: 15.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.729e-05/0.005742, allocations: 75.28 kB / 380.2 MB, free: 15.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005742, allocations: 0 / 380.2 MB, free: 15.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002467/0.005988, allocations: 15.94 kB / 380.2 MB, free: 15.51 MB / 362.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.0005344/0.006523, allocations: 206.7 kB / 380.4 MB, free: 15.33 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001379/0.006661, allocations: 114.8 kB / 380.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.006662, allocations: 0 / 380.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003319/0.006994, allocations: 89.16 kB / 380.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001176/0.007112, allocations: 0 / 380.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002212/0.007333, allocations: 116 kB / 380.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.664e-05/0.00739, allocations: 59.34 kB / 380.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.228e-06/0.007394, allocations: 0 / 380.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.549e-05/0.007409, allocations: 8.5 kB / 380.8 MB, free: 14.85 MB / 362.7 MB Notification: Performance of SimCode: time 3.5e-07/0.00741, allocations: 0 / 380.8 MB, free: 14.85 MB / 362.7 MB Notification: Performance of Templates: time 0.003282/0.01069, allocations: 0.6258 MB / 381.4 MB, free: 14.23 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (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 & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/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: 4.674296633922495]