Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 71.12 kB / 21.24 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001936/0.001936, allocations: 158.9 kB / 24.5 MB, free: 3.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.519/1.519, allocations: 177.2 MB / 204.9 MB, free: 9.031 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2344/0.2344, allocations: 32.81 MB / 294.1 MB, free: 60 kB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00208/0.00208, allocations: 63.89 kB / 440.5 MB, free: 9.496 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3399/0.342, allocations: 65.45 MB / 0.4941 GB, free: 31.44 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001443/0.3434, allocations: 497.1 kB / 0.4946 GB, free: 31.15 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004583/0.3439, allocations: 221.5 kB / 0.4948 GB, free: 31.03 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3e-05/0.3439, allocations: 0 / 0.4948 GB, free: 31.03 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.739e-05/0.3439, allocations: 0 / 0.4948 GB, free: 31.03 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.37e-06/0.3439, allocations: 3.188 kB / 0.4948 GB, free: 31.03 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321: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.0002922/0.3442, allocations: 51.34 kB / 0.4949 GB, free: 31 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.947e-05/0.3443, allocations: 0 / 0.4949 GB, free: 31 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.227e-05/0.3443, allocations: 10.36 kB / 0.4949 GB, free: 30.99 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.372e-05/0.3443, allocations: 0 / 0.4949 GB, free: 30.99 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.462e-05/0.3444, allocations: 0 / 0.4949 GB, free: 30.99 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.33e-06/0.3444, allocations: 0 / 0.4949 GB, free: 30.99 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.3445, allocations: 51.02 kB / 0.4949 GB, free: 30.98 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.003e-06/0.3445, allocations: 4 kB / 0.4949 GB, free: 30.97 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.792e-05/0.3445, allocations: 0 / 0.4949 GB, free: 30.97 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 9.857e-05/0.3446, allocations: 49.94 kB / 0.495 GB, free: 30.95 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.3446, allocations: 0 / 0.495 GB, free: 30.95 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3446, allocations: 0 / 0.495 GB, free: 30.95 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.3446, allocations: 0 / 0.495 GB, free: 30.95 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.0002404/0.3448, allocations: 272.8 kB / 0.4952 GB, free: 30.67 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.3449, allocations: 6.594 kB / 0.4952 GB, free: 30.67 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.856e-05/0.3449, allocations: 4.156 kB / 0.4952 GB, free: 30.67 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.492e-05/0.3449, allocations: 106.5 kB / 0.4953 GB, free: 30.54 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.345, allocations: 384 / 0.4953 GB, free: 30.54 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.085e-05/0.345, allocations: 4.375 kB / 0.4953 GB, free: 30.54 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.671e-05/0.345, allocations: 62.81 kB / 0.4954 GB, free: 30.47 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.3451, allocations: 192 / 0.4954 GB, free: 30.47 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.3451, allocations: 7.062 kB / 0.4954 GB, free: 30.46 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.447e-06/0.3451, allocations: 0 / 0.4954 GB, free: 30.46 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.094e-05/0.3451, allocations: 25.7 kB / 0.4954 GB, free: 30.43 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.036e-05/0.3452, allocations: 100.6 kB / 0.4955 GB, free: 30.31 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.379e-05/0.3452, allocations: 50.94 kB / 0.4956 GB, free: 30.25 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.545e-05/0.3452, allocations: 30.56 kB / 0.4956 GB, free: 30.21 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.874e-06/0.3452, allocations: 0 / 0.4956 GB, free: 30.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.59e-05/0.3453, allocations: 67.42 kB / 0.4957 GB, free: 30.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 7.42e-07/0.3453, allocations: 0 / 0.4957 GB, free: 30.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001419/0.3454, allocations: 124.4 kB / 0.4958 GB, free: 30 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.446e-05/0.3454, allocations: 80.33 kB / 0.4959 GB, free: 29.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.843e-05/0.3454, allocations: 93.81 kB / 0.496 GB, free: 29.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.211e-06/0.3454, allocations: 25.7 kB / 0.496 GB, free: 29.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.977e-06/0.3455, allocations: 80.14 kB / 0.4961 GB, free: 29.69 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.182e-05/0.3455, allocations: 0 / 0.4961 GB, free: 29.69 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.213e-05/0.3455, allocations: 13.19 kB / 0.4961 GB, free: 29.67 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.286e-05/0.3455, allocations: 314.3 kB / 0.4964 GB, free: 29.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.408e-05/0.3455, allocations: 37.02 kB / 0.4964 GB, free: 29.32 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.807e-06/0.3456, allocations: 25.7 kB / 0.4964 GB, free: 29.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.346e-05/0.3456, allocations: 63.58 kB / 0.4965 GB, free: 29.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.3456, allocations: 0 / 0.4965 GB, free: 29.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.12e-05/0.3456, allocations: 102.2 kB / 0.4966 GB, free: 29.11 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.3457, allocations: 28.92 kB / 0.4966 GB, free: 29.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.3457, allocations: 0 / 0.4966 GB, free: 29.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.3457, allocations: 3.25 kB / 0.4966 GB, free: 29.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.114e-06/0.3457, allocations: 3.938 kB / 0.4966 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.3457, allocations: 4.094 kB / 0.4966 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.361e-05/0.3457, allocations: 0 / 0.4966 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-06/0.3457, allocations: 0 / 0.4966 GB, free: 29.07 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 4.309e-05/0.3457, allocations: 138.2 kB / 0.4968 GB, free: 28.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.822e-06/0.3458, allocations: 0 / 0.4968 GB, free: 28.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.243e-06/0.3458, allocations: 6.25 kB / 0.4968 GB, free: 28.92 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.3458, allocations: 3.938 kB / 0.4968 GB, free: 28.92 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.3458, allocations: 0 / 0.4968 GB, free: 28.92 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.3458, allocations: 3.984 kB / 0.4968 GB, free: 28.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.567e-05/0.3458, allocations: 99.95 kB / 0.4969 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3458, allocations: 7.938 kB / 0.4969 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3458, allocations: 0 / 0.4969 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.3458, allocations: 0 / 0.4969 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-06/0.3458, allocations: 0 / 0.4969 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.3458, allocations: 0 / 0.4969 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3458, allocations: 7.219 kB / 0.4969 GB, free: 28.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.355e-05/0.3459, allocations: 118 kB / 0.497 GB, free: 28.65 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.336e-06/0.3459, allocations: 0 / 0.497 GB, free: 28.65 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.308e-06/0.3459, allocations: 3.312 kB / 0.497 GB, free: 28.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.256e-06/0.3459, allocations: 3.938 kB / 0.497 GB, free: 28.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.5e-05/0.3459, allocations: 3.938 kB / 0.497 GB, free: 28.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-06/0.3459, allocations: 7.25 kB / 0.497 GB, free: 28.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.095e-05/0.3459, allocations: 75.28 kB / 0.4971 GB, free: 28.56 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3459, allocations: 0 / 0.4971 GB, free: 28.56 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002075/0.3461, allocations: 17.67 kB / 0.4971 GB, free: 28.56 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.0003806/0.3465, allocations: 191.9 kB / 0.4973 GB, free: 28.44 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 7.837e-05/0.3466, allocations: 120.4 kB / 0.4974 GB, free: 28.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3466, allocations: 0 / 0.4974 GB, free: 28.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.97e-05/0.3466, allocations: 80.39 kB / 0.4975 GB, free: 28.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000119/0.3467, allocations: 2.812 kB / 0.4975 GB, free: 28.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001523/0.3469, allocations: 114.3 kB / 0.4976 GB, free: 28.08 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.413e-05/0.3469, allocations: 58.58 kB / 0.4976 GB, free: 28 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.097e-06/0.3469, allocations: 0 / 0.4976 GB, free: 28 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.025e-05/0.3469, allocations: 15.62 kB / 0.4977 GB, free: 27.99 MB / 446.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3469, allocations: 0 / 0.4977 GB, free: 27.99 MB / 446.1 MB Notification: Performance of Templates: time 0.002777/0.3497, allocations: 0.5954 MB / 0.4982 GB, free: 27.88 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.977698607021011]