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.001467/0.001467, allocations: 119.5 kB / 18.45 MB, free: 4.613 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.001507/0.001507, allocations: 201.8 kB / 21.4 MB, free: 1.668 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.49/1.49, allocations: 227.4 MB / 251.7 MB, free: 72 kB / 190.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.2267/0.2267, allocations: 46.17 MB / 351.1 MB, free: 14.34 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: 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 0.002241/0.002241, allocations: 81.53 kB / 490.2 MB, free: 27.95 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1121, allocations: 62.44 MB / 0.5397 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001594/0.1138, allocations: 489 kB / 0.5401 GB, free: 3.793 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005289/0.1143, allocations: 211.8 kB / 0.5403 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.973e-05/0.1144, allocations: 3.938 kB / 0.5403 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.525e-05/0.1144, allocations: 0 / 0.5403 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.54e-06/0.1144, allocations: 4 kB / 0.5403 GB, free: 3.578 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.0002691/0.1147, allocations: 39.84 kB / 0.5404 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.766e-05/0.1147, allocations: 0 / 0.5404 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.735e-05/0.1148, allocations: 4 kB / 0.5404 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.372e-05/0.1148, allocations: 0 / 0.5404 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.96e-05/0.1148, allocations: 0 / 0.5404 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.681e-06/0.1148, allocations: 4 kB / 0.5404 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.115, allocations: 59.94 kB / 0.5404 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.597e-06/0.115, allocations: 3.984 kB / 0.5404 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.586e-05/0.115, allocations: 0 / 0.5404 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00013/0.1151, allocations: 39.89 kB / 0.5405 GB, free: 3.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1152, allocations: 0 / 0.5405 GB, free: 3.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.1152, allocations: 4 kB / 0.5405 GB, free: 3.426 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.1152, allocations: 3.938 kB / 0.5405 GB, free: 3.422 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.0004073/0.1156, allocations: 349.1 kB / 0.5408 GB, free: 3.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.1156, allocations: 16.03 kB / 0.5408 GB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.029e-05/0.1157, allocations: 0.9375 kB / 0.5408 GB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001337/0.1158, allocations: 160.4 kB / 0.541 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.1158, allocations: 384 / 0.541 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/0.1158, allocations: 384 / 0.541 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.53e-05/0.116, allocations: 42.19 kB / 0.541 GB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.116, allocations: 192 / 0.541 GB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.116, allocations: 3.938 kB / 0.541 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.116, allocations: 0 / 0.541 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.921e-05/0.116, allocations: 4 kB / 0.541 GB, free: 2.758 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000174/0.1162, allocations: 145.7 kB / 0.5412 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.921e-05/0.1163, allocations: 18.52 kB / 0.5412 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.793e-05/0.1163, allocations: 12.94 kB / 0.5412 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.1163, allocations: 0 / 0.5412 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.456e-05/0.1164, allocations: 60.27 kB / 0.5413 GB, free: 2.449 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.1164, allocations: 0 / 0.5413 GB, free: 2.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001946/0.1166, allocations: 67.34 kB / 0.5413 GB, free: 2.371 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.1166, allocations: 85.03 kB / 0.5414 GB, free: 2.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.434e-05/0.1167, allocations: 93.81 kB / 0.5415 GB, free: 2.168 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.1167, allocations: 29.7 kB / 0.5415 GB, free: 2.133 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.187e-05/0.1167, allocations: 80.14 kB / 0.5416 GB, free: 2.051 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/0.1168, allocations: 0 / 0.5416 GB, free: 2.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.1168, allocations: 13.72 kB / 0.5416 GB, free: 2.031 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.1169, allocations: 314.8 kB / 0.5419 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.235e-06/0.117, allocations: 4.125 kB / 0.5419 GB, free: 1.711 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.819e-06/0.117, allocations: 0 / 0.5419 GB, free: 1.711 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.579e-05/0.117, allocations: 60.27 kB / 0.542 GB, free: 1.637 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.117, allocations: 3.938 kB / 0.542 GB, free: 1.633 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.287e-05/0.1171, allocations: 71.33 kB / 0.542 GB, free: 1.551 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.525e-05/0.1172, allocations: 29.7 kB / 0.5421 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1172, allocations: 0 / 0.5421 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1172, allocations: 3.938 kB / 0.5421 GB, free: 1.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.1172, allocations: 0 / 0.5421 GB, free: 1.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.1172, allocations: 8.094 kB / 0.5421 GB, free: 1.504 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.514e-05/0.1172, allocations: 0 / 0.5421 GB, free: 1.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.1172, allocations: 0 / 0.5421 GB, free: 1.504 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.0001089/0.1174, allocations: 135.5 kB / 0.5422 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.783e-06/0.1174, allocations: 4 kB / 0.5422 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.787e-06/0.1174, allocations: 7.062 kB / 0.5422 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.1174, allocations: 0 / 0.5422 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1174, allocations: 3.984 kB / 0.5422 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1174, allocations: 4 kB / 0.5422 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001128/0.1175, allocations: 157.7 kB / 0.5424 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1175, allocations: 0 / 0.5424 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.1175, allocations: 0 / 0.5424 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.1175, allocations: 0 / 0.5424 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.1176, allocations: 3.938 kB / 0.5424 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.1176, allocations: 3.938 kB / 0.5424 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1176, allocations: 0 / 0.5424 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000103/0.1177, allocations: 98.77 kB / 0.5425 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.679e-05/0.1177, allocations: 81.14 kB / 0.5426 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.1177, allocations: 3.938 kB / 0.5426 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.183e-05/0.1178, allocations: 4 kB / 0.5426 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.314e-05/0.1178, allocations: 0 / 0.5426 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.1178, allocations: 0 / 0.5426 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.14e-05/0.1178, allocations: 75.28 kB / 0.5426 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1178, allocations: 0 / 0.5426 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002218/0.1181, allocations: 19.92 kB / 0.5427 GB, free: 0.8086 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.0004723/0.1185, allocations: 212 kB / 0.5429 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.895e-05/0.1186, allocations: 63.39 kB / 0.5429 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1186, allocations: 0 / 0.5429 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.582e-05/0.1187, allocations: 55.41 kB / 0.543 GB, free: 492 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.1188, allocations: 0 / 0.543 GB, free: 492 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000161/0.119, allocations: 85 kB / 0.5431 GB, free: 380 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.1193, allocations: 0.6729 MB / 0.5437 GB, free: 15.67 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.059e-06/0.1193, allocations: 4.125 kB / 0.5437 GB, free: 15.67 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.193e-05/0.1194, allocations: 11.44 kB / 0.5437 GB, free: 15.66 MB / 414.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1194, allocations: 0 / 0.5437 GB, free: 15.66 MB / 414.1 MB Notification: Performance of Templates: time 0.0029/0.1223, allocations: 0.5787 MB / 0.5443 GB, free: 15.08 MB / 414.1 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.0.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.8645491329953074]