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.001338/0.001338, allocations: 113.1 kB / 21.85 MB, free: 64 kB / 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.001565/0.001565, allocations: 201.8 kB / 25.13 MB, free: 3.578 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.441/1.441, allocations: 230.4 MB / 258.7 MB, free: 8.066 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.2288/0.2288, allocations: 46.93 MB / 362 MB, free: 4.277 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.002365/0.002365, allocations: 83.86 kB / 0.4978 GB, free: 7.461 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3195, allocations: 66.08 MB / 0.5623 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001596/0.3211, allocations: 491.9 kB / 0.5628 GB, free: 3.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005834/0.3217, allocations: 233.6 kB / 0.563 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.337e-05/0.3217, allocations: 0 / 0.563 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.113e-05/0.3217, allocations: 0 / 0.563 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.841e-06/0.3217, allocations: 0 / 0.563 GB, free: 3.598 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.0003398/0.3221, allocations: 43.84 kB / 0.563 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.508e-05/0.3221, allocations: 4 kB / 0.563 GB, free: 3.551 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.327e-05/0.3222, allocations: 0 / 0.563 GB, free: 3.551 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.597e-05/0.3222, allocations: 4 kB / 0.563 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.115e-05/0.3222, allocations: 0 / 0.563 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.27e-06/0.3222, allocations: 0 / 0.563 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001301/0.3223, allocations: 55.95 kB / 0.5631 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.999e-06/0.3224, allocations: 3.984 kB / 0.5631 GB, free: 3.488 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.657e-05/0.3224, allocations: 0 / 0.5631 GB, free: 3.488 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.3225, allocations: 47.67 kB / 0.5631 GB, free: 3.445 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3225, allocations: 0 / 0.5631 GB, free: 3.445 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3225, allocations: 0 / 0.5631 GB, free: 3.445 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.3225, allocations: 4 kB / 0.5631 GB, free: 3.441 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.0003704/0.3229, allocations: 274.6 kB / 0.5634 GB, free: 3.141 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.3229, allocations: 8.031 kB / 0.5634 GB, free: 3.133 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.812e-05/0.323, allocations: 0.9375 kB / 0.5634 GB, free: 3.133 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.569e-05/0.3231, allocations: 110.5 kB / 0.5635 GB, free: 3 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.3231, allocations: 4.375 kB / 0.5635 GB, free: 2.996 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/0.3231, allocations: 384 / 0.5635 GB, free: 2.996 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001022/0.3232, allocations: 55.95 kB / 0.5636 GB, free: 2.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.3232, allocations: 192 / 0.5636 GB, free: 2.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.3232, allocations: 7.938 kB / 0.5636 GB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.3232, allocations: 3.938 kB / 0.5636 GB, free: 2.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.945e-05/0.3232, allocations: 25.7 kB / 0.5636 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00015/0.3234, allocations: 124.7 kB / 0.5637 GB, free: 2.723 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.361e-05/0.3234, allocations: 48.22 kB / 0.5638 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.909e-05/0.3235, allocations: 34.55 kB / 0.5638 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.526e-06/0.3235, allocations: 4.094 kB / 0.5638 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.232e-05/0.3235, allocations: 60.27 kB / 0.5639 GB, free: 2.539 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3235, allocations: 0 / 0.5639 GB, free: 2.539 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002044/0.3238, allocations: 114.8 kB / 0.564 GB, free: 2.402 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/0.3238, allocations: 85.22 kB / 0.5641 GB, free: 2.301 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.256e-05/0.3239, allocations: 93.81 kB / 0.5642 GB, free: 2.199 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.3239, allocations: 25.7 kB / 0.5642 GB, free: 2.168 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.325e-05/0.3239, allocations: 88.14 kB / 0.5643 GB, free: 2.078 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.324, allocations: 3.938 kB / 0.5643 GB, free: 2.074 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.767e-05/0.324, allocations: 13.66 kB / 0.5643 GB, free: 2.055 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3241, allocations: 310.8 kB / 0.5646 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.866e-05/0.3242, allocations: 29.7 kB / 0.5646 GB, free: 1.707 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.864e-05/0.3242, allocations: 29.7 kB / 0.5646 GB, free: 1.672 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.264e-05/0.3243, allocations: 68.25 kB / 0.5647 GB, free: 1.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3243, allocations: 0 / 0.5647 GB, free: 1.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.015e-05/0.3243, allocations: 85.11 kB / 0.5648 GB, free: 1.488 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.173e-05/0.3244, allocations: 29.7 kB / 0.5648 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.3244, allocations: 0 / 0.5648 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.3244, allocations: 3.938 kB / 0.5648 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.41e-05/0.3244, allocations: 11.98 kB / 0.5648 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.3244, allocations: 0 / 0.5648 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.497e-05/0.3244, allocations: 8.031 kB / 0.5648 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.3244, allocations: 0 / 0.5648 GB, free: 1.43 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 9.341e-05/0.3245, allocations: 140.4 kB / 0.565 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.354e-06/0.3245, allocations: 0 / 0.565 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.234e-05/0.3245, allocations: 6.938 kB / 0.565 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-06/0.3245, allocations: 0 / 0.565 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.3246, allocations: 0 / 0.565 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.3246, allocations: 0 / 0.565 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001282/0.3247, allocations: 120.8 kB / 0.5651 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3247, allocations: 4 kB / 0.5651 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.3247, allocations: 0 / 0.5651 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.3247, allocations: 0 / 0.5651 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.3247, allocations: 7.922 kB / 0.5651 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.3247, allocations: 0 / 0.5651 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3247, allocations: 4 kB / 0.5651 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001191/0.3248, allocations: 112.5 kB / 0.5652 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.46e-06/0.3248, allocations: 7.938 kB / 0.5652 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.3248, allocations: 7.969 kB / 0.5652 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.155e-06/0.3248, allocations: 0 / 0.5652 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.588e-05/0.3249, allocations: 3.938 kB / 0.5652 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.3249, allocations: 3.984 kB / 0.5652 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.408e-05/0.3249, allocations: 83.27 kB / 0.5653 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3249, allocations: 0 / 0.5653 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002149/0.3251, allocations: 23.88 kB / 0.5653 GB, free: 0.8242 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.0004208/0.3255, allocations: 172.5 kB / 0.5655 GB, free: 0.668 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001211/0.3257, allocations: 106.8 kB / 0.5656 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3257, allocations: 12.06 kB / 0.5656 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.264e-05/0.3257, allocations: 81.09 kB / 0.5657 GB, free: 440 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001282/0.3258, allocations: 6.344 kB / 0.5657 GB, free: 436 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001994/0.326, allocations: 106.7 kB / 0.5658 GB, free: 296 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.3264, allocations: 0.669 MB / 0.5665 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.591e-06/0.3264, allocations: 0 / 0.5665 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.208e-05/0.3264, allocations: 11.38 kB / 0.5665 GB, free: 15.58 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3264, allocations: 0 / 0.5665 GB, free: 15.58 MB / 414.1 MB Notification: Performance of Templates: time 0.003358/0.3297, allocations: 0.6069 MB / 0.5671 GB, free: 14.98 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.898530230857432]