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.00181/0.00181, allocations: 79.73 kB / 21.25 MB, free: 396 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.001559/0.001559, allocations: 165.2 kB / 24.5 MB, free: 3.453 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.442/1.442, allocations: 177.1 MB / 204.7 MB, free: 9.004 MB / 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.2141/0.2141, allocations: 34.26 MB / 295.4 MB, free: 14.51 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.002677/0.002677, allocations: 91.84 kB / 443.1 MB, free: 6.562 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.321, allocations: 66.05 MB / 0.4972 GB, free: 29.77 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001544/0.3225, allocations: 493.7 kB / 0.4977 GB, free: 29.48 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005742/0.3231, allocations: 225.7 kB / 0.4979 GB, free: 29.36 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.544e-05/0.3231, allocations: 0 / 0.4979 GB, free: 29.36 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.786e-05/0.3231, allocations: 0 / 0.4979 GB, free: 29.36 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 8.015e-06/0.3231, allocations: 0 / 0.4979 GB, free: 29.36 MB / 446.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.0003112/0.3234, allocations: 46.56 kB / 0.498 GB, free: 29.33 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.707e-05/0.3235, allocations: 4 kB / 0.498 GB, free: 29.33 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.02e-05/0.3236, allocations: 2.969 kB / 0.498 GB, free: 29.33 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.512e-05/0.3236, allocations: 0 / 0.498 GB, free: 29.33 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.679e-05/0.3236, allocations: 3.984 kB / 0.498 GB, free: 29.32 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-06/0.3236, allocations: 7.938 kB / 0.498 GB, free: 29.32 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001268/0.3237, allocations: 50.16 kB / 0.498 GB, free: 29.3 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.047e-06/0.3237, allocations: 0 / 0.498 GB, free: 29.3 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.549e-05/0.3238, allocations: 0 / 0.498 GB, free: 29.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001193/0.3239, allocations: 40.98 kB / 0.4981 GB, free: 29.29 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3239, allocations: 0 / 0.4981 GB, free: 29.29 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3239, allocations: 0 / 0.4981 GB, free: 29.29 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.3239, allocations: 3.938 kB / 0.4981 GB, free: 29.29 MB / 446.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.0002879/0.3242, allocations: 275.1 kB / 0.4983 GB, free: 29 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.3242, allocations: 8.719 kB / 0.4984 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.354e-05/0.3243, allocations: 7.906 kB / 0.4984 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.741e-05/0.3243, allocations: 113.9 kB / 0.4985 GB, free: 28.86 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.986e-06/0.3243, allocations: 384 / 0.4985 GB, free: 28.86 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.3243, allocations: 7.297 kB / 0.4985 GB, free: 28.86 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.763e-05/0.3244, allocations: 51.97 kB / 0.4985 GB, free: 28.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.3244, allocations: 3.406 kB / 0.4985 GB, free: 28.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.3245, allocations: 3.938 kB / 0.4985 GB, free: 28.79 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.3245, allocations: 0 / 0.4985 GB, free: 28.79 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.383e-05/0.3245, allocations: 25.7 kB / 0.4986 GB, free: 28.76 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.828e-05/0.3246, allocations: 104.2 kB / 0.4987 GB, free: 28.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.025e-05/0.3246, allocations: 51.22 kB / 0.4987 GB, free: 28.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.751e-05/0.3246, allocations: 34.56 kB / 0.4987 GB, free: 28.53 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.498e-06/0.3247, allocations: 0 / 0.4987 GB, free: 28.53 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.3247, allocations: 59.42 kB / 0.4988 GB, free: 28.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.3247, allocations: 0 / 0.4988 GB, free: 28.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001793/0.3249, allocations: 127 kB / 0.4989 GB, free: 28.32 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.3249, allocations: 77.11 kB / 0.499 GB, free: 28.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.65e-05/0.3249, allocations: 97.75 kB / 0.4991 GB, free: 28.12 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.825e-06/0.3249, allocations: 29.22 kB / 0.4991 GB, free: 28.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.114e-05/0.3249, allocations: 83.11 kB / 0.4992 GB, free: 28.01 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/0.325, allocations: 128 / 0.4992 GB, free: 28.01 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.357e-05/0.325, allocations: 16.75 kB / 0.4992 GB, free: 27.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.998e-05/0.325, allocations: 310.8 kB / 0.4995 GB, free: 27.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.758e-05/0.3251, allocations: 29.7 kB / 0.4995 GB, free: 27.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.188e-05/0.3251, allocations: 28.64 kB / 0.4996 GB, free: 27.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.656e-05/0.3251, allocations: 63.05 kB / 0.4996 GB, free: 27.54 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-06/0.3251, allocations: 3.938 kB / 0.4996 GB, free: 27.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.046e-05/0.3252, allocations: 87.61 kB / 0.4997 GB, free: 27.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.3252, allocations: 31.73 kB / 0.4997 GB, free: 27.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.3252, allocations: 0 / 0.4997 GB, free: 27.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.3252, allocations: 10.81 kB / 0.4997 GB, free: 27.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.333e-06/0.3252, allocations: 7.875 kB / 0.4998 GB, free: 27.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.608e-06/0.3252, allocations: 3.938 kB / 0.4998 GB, free: 27.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.653e-05/0.3252, allocations: 0 / 0.4998 GB, free: 27.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.3252, allocations: 4 kB / 0.4998 GB, free: 27.39 MB / 446.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 5.205e-05/0.3253, allocations: 134.8 kB / 0.4999 GB, free: 27.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.635e-06/0.3253, allocations: 0 / 0.4999 GB, free: 27.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.157e-05/0.3253, allocations: 6.219 kB / 0.4999 GB, free: 27.24 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.3253, allocations: 3.938 kB / 0.4999 GB, free: 27.24 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3253, allocations: 0 / 0.4999 GB, free: 27.24 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.3253, allocations: 4 kB / 0.4999 GB, free: 27.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.664e-05/0.3254, allocations: 100.2 kB / 0.5 GB, free: 27.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3254, allocations: 0 / 0.5 GB, free: 27.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3254, allocations: 0 / 0.5 GB, free: 27.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.32e-07/0.3254, allocations: 0 / 0.5 GB, free: 27.11 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-06/0.3254, allocations: 0 / 0.5 GB, free: 27.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.3254, allocations: 0 / 0.5 GB, free: 27.11 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3254, allocations: 3.938 kB / 0.5 GB, free: 27.11 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.526e-05/0.3254, allocations: 116.5 kB / 0.5001 GB, free: 26.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.661e-06/0.3255, allocations: 11.16 kB / 0.5001 GB, free: 26.97 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.027e-05/0.3255, allocations: 4.031 kB / 0.5001 GB, free: 26.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.128e-06/0.3255, allocations: 3.562 kB / 0.5001 GB, free: 26.97 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.192e-05/0.3255, allocations: 7.031 kB / 0.5001 GB, free: 26.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.3255, allocations: 0 / 0.5001 GB, free: 26.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.355e-05/0.3255, allocations: 75.28 kB / 0.5002 GB, free: 26.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3255, allocations: 0 / 0.5002 GB, free: 26.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002279/0.3257, allocations: 16.91 kB / 0.5002 GB, free: 26.89 MB / 446.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.0004237/0.3262, allocations: 202 kB / 0.5004 GB, free: 26.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 9.77e-05/0.3263, allocations: 113.5 kB / 0.5005 GB, free: 26.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3263, allocations: 3.219 kB / 0.5005 GB, free: 26.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.519e-05/0.3263, allocations: 84.45 kB / 0.5006 GB, free: 26.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.3264, allocations: 0 / 0.5006 GB, free: 26.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001727/0.3266, allocations: 121.3 kB / 0.5007 GB, free: 26.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.837e-05/0.3266, allocations: 54.58 kB / 0.5008 GB, free: 26.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.079e-06/0.3266, allocations: 0 / 0.5008 GB, free: 26.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.005e-05/0.3266, allocations: 8.5 kB / 0.5008 GB, free: 26.3 MB / 446.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3266, allocations: 0 / 0.5008 GB, free: 26.3 MB / 446.1 MB Notification: Performance of Templates: time 0.003177/0.3298, allocations: 0.5934 MB / 0.5014 GB, free: 26.19 MB / 446.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 -s ida -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: 4.9344586950028315]