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.001567/0.001567, allocations: 111.9 kB / 19.12 MB, free: 3.941 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.001995/0.001995, allocations: 208.9 kB / 22.08 MB, free: 0.9922 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.504/1.504, allocations: 227.4 MB / 252.3 MB, free: 104 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.2379/0.2379, allocations: 46.17 MB / 351.8 MB, free: 14.3 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.003276/0.003276, allocations: 85.22 kB / 490.8 MB, free: 28.15 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1341, allocations: 62.44 MB / 0.5403 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001678/0.1359, allocations: 496.9 kB / 0.5408 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005714/0.1364, allocations: 207.7 kB / 0.541 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.604e-05/0.1365, allocations: 4 kB / 0.541 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.819e-05/0.1365, allocations: 0 / 0.541 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.803e-06/0.1365, allocations: 0 / 0.541 GB, free: 3.613 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.0003119/0.1369, allocations: 51.81 kB / 0.541 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.039e-05/0.1369, allocations: 4 kB / 0.541 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.673e-05/0.137, allocations: 0 / 0.541 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.969e-05/0.137, allocations: 4 kB / 0.541 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.187e-05/0.137, allocations: 0 / 0.541 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.43e-06/0.137, allocations: 0 / 0.541 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.1372, allocations: 51.94 kB / 0.5411 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.985e-06/0.1372, allocations: 0 / 0.5411 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.067e-05/0.1372, allocations: 11.98 kB / 0.5411 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.1373, allocations: 43.83 kB / 0.5412 GB, free: 3.449 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.1374, allocations: 3.938 kB / 0.5412 GB, free: 3.445 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1374, allocations: 0 / 0.5412 GB, free: 3.445 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1374, allocations: 0 / 0.5412 GB, free: 3.445 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.0003644/0.1377, allocations: 353.2 kB / 0.5415 GB, free: 3.043 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.1378, allocations: 8.031 kB / 0.5415 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.563e-05/0.1378, allocations: 4.938 kB / 0.5415 GB, free: 3.031 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.138, allocations: 160.4 kB / 0.5417 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.138, allocations: 384 / 0.5417 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.736e-06/0.138, allocations: 4.375 kB / 0.5417 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.16e-05/0.1381, allocations: 38.19 kB / 0.5417 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.1381, allocations: 192 / 0.5417 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.1381, allocations: 3.938 kB / 0.5417 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1381, allocations: 0 / 0.5417 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.533e-05/0.1381, allocations: 0 / 0.5417 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000147/0.1383, allocations: 145.7 kB / 0.5418 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.115e-05/0.1383, allocations: 18.58 kB / 0.5419 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.856e-05/0.1384, allocations: 12.84 kB / 0.5419 GB, free: 2.551 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.586e-06/0.1384, allocations: 3.938 kB / 0.5419 GB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.923e-05/0.1384, allocations: 60.36 kB / 0.5419 GB, free: 2.473 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1384, allocations: 0 / 0.5419 GB, free: 2.473 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001735/0.1386, allocations: 63.34 kB / 0.542 GB, free: 2.398 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.1387, allocations: 77.11 kB / 0.5421 GB, free: 2.305 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.618e-05/0.1388, allocations: 101.8 kB / 0.5422 GB, free: 2.195 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.1388, allocations: 29.83 kB / 0.5422 GB, free: 2.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.172e-05/0.1388, allocations: 80.14 kB / 0.5423 GB, free: 2.078 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.037e-05/0.1389, allocations: 0 / 0.5423 GB, free: 2.078 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.069e-05/0.1389, allocations: 13.72 kB / 0.5423 GB, free: 2.059 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.139, allocations: 314.8 kB / 0.5426 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.889e-06/0.139, allocations: 0 / 0.5426 GB, free: 1.742 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.021e-05/0.1391, allocations: 7.938 kB / 0.5426 GB, free: 1.734 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.726e-05/0.1391, allocations: 64.33 kB / 0.5426 GB, free: 1.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1391, allocations: 4 kB / 0.5427 GB, free: 1.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.194e-05/0.1392, allocations: 59.39 kB / 0.5427 GB, free: 1.582 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.581e-05/0.1392, allocations: 33.7 kB / 0.5427 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.1393, allocations: 0 / 0.5427 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.1393, allocations: 3.938 kB / 0.5427 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.1393, allocations: 0 / 0.5427 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.1393, allocations: 0 / 0.5427 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.561e-05/0.1393, allocations: 0 / 0.5427 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.1393, allocations: 0 / 0.5427 GB, free: 1.539 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.0001001/0.1394, allocations: 143.6 kB / 0.5429 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.538e-06/0.1394, allocations: 0 / 0.5429 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.124e-05/0.1395, allocations: 18.94 kB / 0.5429 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.1395, allocations: 4 kB / 0.5429 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1395, allocations: 0 / 0.5429 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1395, allocations: 3.984 kB / 0.5429 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001146/0.1396, allocations: 149.7 kB / 0.5431 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1396, allocations: 0 / 0.5431 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1396, allocations: 0 / 0.5431 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.1396, allocations: 0 / 0.5431 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.1396, allocations: 11.94 kB / 0.5431 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.1396, allocations: 0 / 0.5431 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1397, allocations: 0 / 0.5431 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001082/0.1398, allocations: 94.81 kB / 0.5432 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.762e-05/0.1398, allocations: 77.11 kB / 0.5432 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.1398, allocations: 3.938 kB / 0.5432 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.017e-06/0.1399, allocations: 0 / 0.5432 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.043e-05/0.1399, allocations: 4.031 kB / 0.5432 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.588e-06/0.1399, allocations: 4 kB / 0.5432 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.285e-05/0.1399, allocations: 75.28 kB / 0.5433 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.314e-06/0.1399, allocations: 0 / 0.5433 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002093/0.1401, allocations: 23.88 kB / 0.5433 GB, free: 0.832 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.0005183/0.1407, allocations: 202.1 kB / 0.5435 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001039/0.1408, allocations: 59.39 kB / 0.5436 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1408, allocations: 8.062 kB / 0.5436 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.518e-05/0.1408, allocations: 51.41 kB / 0.5436 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.141, allocations: 5.562 kB / 0.5436 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002075/0.1412, allocations: 106.8 kB / 0.5437 GB, free: 384 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.1415, allocations: 0.6729 MB / 0.5444 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.27e-05/0.1415, allocations: 7.438 kB / 0.5444 GB, free: 15.67 MB / 414.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1415, allocations: 0 / 0.5444 GB, free: 15.67 MB / 414.1 MB Notification: Performance of Templates: time 0.002459/0.144, allocations: 0.7571 MB / 0.5451 GB, free: 14.91 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.370156769058667]