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.001794/0.001794, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.002123/0.002123, allocations: 219.5 kB / 24.48 MB, free: 3.836 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.451/1.451, allocations: 230.5 MB / 258.1 MB, free: 7.805 MB / 206.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.2371/0.2371, allocations: 46.94 MB / 361.5 MB, free: 3.953 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.002567/0.002567, allocations: 91.75 kB / 0.4974 GB, free: 7.098 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3306, allocations: 66.08 MB / 0.5619 GB, free: 4.012 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001673/0.3322, allocations: 493 kB / 0.5624 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006642/0.3329, allocations: 221.7 kB / 0.5626 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.192e-05/0.3329, allocations: 0 / 0.5626 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.132e-05/0.3329, allocations: 0 / 0.5626 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.24e-06/0.3329, allocations: 0 / 0.5626 GB, free: 3.316 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.0003035/0.3332, allocations: 43.83 kB / 0.5626 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.485e-05/0.3333, allocations: 4 kB / 0.5626 GB, free: 3.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.628e-05/0.3334, allocations: 4 kB / 0.5626 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.729e-05/0.3334, allocations: 3.938 kB / 0.5626 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.631e-05/0.3334, allocations: 7.984 kB / 0.5626 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.15e-06/0.3334, allocations: 0 / 0.5626 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.3335, allocations: 51.95 kB / 0.5627 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.783e-06/0.3335, allocations: 0 / 0.5627 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.769e-05/0.3336, allocations: 0 / 0.5627 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001098/0.3337, allocations: 39.75 kB / 0.5627 GB, free: 3.168 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.026e-06/0.3337, allocations: 4 kB / 0.5627 GB, free: 3.164 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3337, allocations: 0 / 0.5627 GB, free: 3.164 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.3337, allocations: 0 / 0.5627 GB, free: 3.164 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.0003768/0.3341, allocations: 274.6 kB / 0.563 GB, free: 2.863 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.3341, allocations: 12.03 kB / 0.563 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.803e-05/0.3341, allocations: 8.812 kB / 0.563 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.215e-05/0.3342, allocations: 110.5 kB / 0.5631 GB, free: 2.711 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.3342, allocations: 4.359 kB / 0.5631 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.3342, allocations: 384 / 0.5631 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001018/0.3343, allocations: 59.97 kB / 0.5632 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.3343, allocations: 192 / 0.5632 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.3344, allocations: 3.938 kB / 0.5632 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.3344, allocations: 0 / 0.5632 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.085e-05/0.3344, allocations: 33.7 kB / 0.5632 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001094/0.3345, allocations: 97.27 kB / 0.5633 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.546e-05/0.3346, allocations: 52.23 kB / 0.5633 GB, free: 2.402 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.645e-05/0.3346, allocations: 34.56 kB / 0.5634 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.564e-06/0.3346, allocations: 0 / 0.5634 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.664e-05/0.3347, allocations: 60.33 kB / 0.5634 GB, free: 2.285 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.41e-07/0.3347, allocations: 0 / 0.5634 GB, free: 2.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000191/0.3349, allocations: 118.7 kB / 0.5635 GB, free: 2.145 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.3349, allocations: 77.11 kB / 0.5636 GB, free: 2.051 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.246e-05/0.335, allocations: 97.81 kB / 0.5637 GB, free: 1.945 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.335, allocations: 29.83 kB / 0.5637 GB, free: 1.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.729e-05/0.335, allocations: 92.06 kB / 0.5638 GB, free: 1.816 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.31e-05/0.335, allocations: 0 / 0.5638 GB, free: 1.816 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.798e-05/0.3351, allocations: 9.719 kB / 0.5638 GB, free: 1.801 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.3352, allocations: 314.8 kB / 0.5641 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.623e-05/0.3352, allocations: 29.69 kB / 0.5642 GB, free: 1.449 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.471e-05/0.3353, allocations: 25.7 kB / 0.5642 GB, free: 1.418 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.677e-05/0.3353, allocations: 64.27 kB / 0.5643 GB, free: 1.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3353, allocations: 0 / 0.5643 GB, free: 1.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.876e-05/0.3354, allocations: 89.17 kB / 0.5643 GB, free: 1.234 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.542e-05/0.3355, allocations: 40.03 kB / 0.5644 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.3355, allocations: 0 / 0.5644 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.3355, allocations: 0 / 0.5644 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.996e-06/0.3355, allocations: 3.938 kB / 0.5644 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.3355, allocations: 3.938 kB / 0.5644 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.434e-05/0.3355, allocations: 0 / 0.5644 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.3355, allocations: 0 / 0.5644 GB, free: 1.184 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.875e-05/0.3356, allocations: 139.5 kB / 0.5645 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.973e-06/0.3356, allocations: 3.938 kB / 0.5645 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.347e-05/0.3356, allocations: 11.02 kB / 0.5645 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.3356, allocations: 3.938 kB / 0.5645 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3356, allocations: 4 kB / 0.5645 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.3356, allocations: 0 / 0.5645 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.884e-05/0.3357, allocations: 93.33 kB / 0.5646 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.3357, allocations: 7.938 kB / 0.5646 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.3357, allocations: 0 / 0.5646 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.3357, allocations: 0 / 0.5646 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.3357, allocations: 4 kB / 0.5646 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.3357, allocations: 0 / 0.5646 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3357, allocations: 3.938 kB / 0.5646 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001253/0.3359, allocations: 120.5 kB / 0.5648 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.018e-06/0.3359, allocations: 0 / 0.5648 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.095e-05/0.3359, allocations: 0 / 0.5648 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.265e-06/0.3359, allocations: 7.938 kB / 0.5648 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.809e-05/0.3359, allocations: 7.922 kB / 0.5648 GB, free: 0.707 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.3359, allocations: 0 / 0.5648 GB, free: 0.707 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.647e-05/0.3359, allocations: 79.28 kB / 0.5648 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3359, allocations: 0 / 0.5648 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002195/0.3362, allocations: 15.94 kB / 0.5649 GB, free: 0.6133 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.0004673/0.3366, allocations: 187.6 kB / 0.565 GB, free: 456 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001345/0.3368, allocations: 114.8 kB / 0.5652 GB, free: 316 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3368, allocations: 0 / 0.5652 GB, free: 316 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.383e-05/0.3368, allocations: 89.08 kB / 0.5652 GB, free: 208 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.337, allocations: 4 kB / 0.5652 GB, free: 204 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002199/0.3372, allocations: 132.4 kB / 0.5654 GB, free: 32 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.267e-05/0.3373, allocations: 63.22 kB / 0.5654 GB, free: 15.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.235e-05/0.3373, allocations: 7.438 kB / 0.5654 GB, free: 15.94 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3373, allocations: 7.938 kB / 0.5654 GB, free: 15.93 MB / 414.1 MB Notification: Performance of Templates: time 0.002409/0.3397, allocations: 0.7426 MB / 0.5662 GB, free: 15.19 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/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: 7.339584254659712]