Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001475/0.001475, allocations: 105.2 kB / 20.44 MB, free: 1.504 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.00162/0.00162, allocations: 221.2 kB / 23.76 MB, free: 4.723 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.26/1.26, allocations: 207.6 MB / 234.5 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1956/0.1956, allocations: 44.24 MB / 331 MB, free: 9.523 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002104/0.002104, allocations: 75.89 kB / 468.7 MB, free: 4.023 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.115, allocations: 61.04 MB / 0.5173 GB, free: 6.855 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001526/0.1165, allocations: 0.4909 MB / 0.5178 GB, free: 6.363 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005233/0.1171, allocations: 217.1 kB / 0.518 GB, free: 6.152 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.603e-05/0.1171, allocations: 0 / 0.518 GB, free: 6.152 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.113e-05/0.1171, allocations: 4 kB / 0.518 GB, free: 6.148 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.105e-06/0.1171, allocations: 3.938 kB / 0.518 GB, free: 6.145 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002707/0.1174, allocations: 43.89 kB / 0.5181 GB, free: 6.102 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.026e-05/0.1174, allocations: 4 kB / 0.5181 GB, free: 6.098 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.65e-05/0.1175, allocations: 4 kB / 0.5181 GB, free: 6.094 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.537e-05/0.1175, allocations: 3.938 kB / 0.5181 GB, free: 6.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.883e-05/0.1175, allocations: 0 / 0.5181 GB, free: 6.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.481e-06/0.1175, allocations: 0 / 0.5181 GB, free: 6.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.1176, allocations: 51.94 kB / 0.5181 GB, free: 6.039 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.753e-06/0.1176, allocations: 0 / 0.5181 GB, free: 6.039 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.313e-05/0.1177, allocations: 0 / 0.5181 GB, free: 6.039 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001099/0.1178, allocations: 51.81 kB / 0.5182 GB, free: 5.988 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.1178, allocations: 4 kB / 0.5182 GB, free: 5.984 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1178, allocations: 4 kB / 0.5182 GB, free: 5.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.1178, allocations: 0 / 0.5182 GB, free: 5.98 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.0003224/0.1181, allocations: 276 kB / 0.5185 GB, free: 5.672 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.1181, allocations: 8.031 kB / 0.5185 GB, free: 5.664 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.149e-05/0.1182, allocations: 4.891 kB / 0.5185 GB, free: 5.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.776e-05/0.1183, allocations: 102.5 kB / 0.5186 GB, free: 5.535 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.1183, allocations: 4.375 kB / 0.5186 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.331e-06/0.1183, allocations: 384 / 0.5186 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.144e-05/0.1184, allocations: 26.27 kB / 0.5186 GB, free: 5.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1184, allocations: 12.12 kB / 0.5186 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.337e-06/0.1184, allocations: 3.938 kB / 0.5186 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-06/0.1184, allocations: 0 / 0.5186 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.291e-05/0.1184, allocations: 3.938 kB / 0.5186 GB, free: 5.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001342/0.1185, allocations: 124.8 kB / 0.5187 GB, free: 5.316 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.05e-05/0.1186, allocations: 14.58 kB / 0.5188 GB, free: 5.293 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.32e-05/0.1186, allocations: 4.859 kB / 0.5188 GB, free: 5.285 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.37e-06/0.1186, allocations: 4 kB / 0.5188 GB, free: 5.281 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.338e-05/0.1186, allocations: 68.25 kB / 0.5188 GB, free: 5.199 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.1186, allocations: 0 / 0.5188 GB, free: 5.199 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000177/0.1188, allocations: 75.27 kB / 0.5189 GB, free: 5.113 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.1189, allocations: 77.11 kB / 0.519 GB, free: 5.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.722e-05/0.1189, allocations: 89.86 kB / 0.5191 GB, free: 4.922 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.1189, allocations: 25.7 kB / 0.5191 GB, free: 4.891 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.395e-05/0.119, allocations: 80.14 kB / 0.5192 GB, free: 4.809 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.119, allocations: 8.109 kB / 0.5192 GB, free: 4.801 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.814e-05/0.119, allocations: 13.72 kB / 0.5192 GB, free: 4.781 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.1192, allocations: 314.8 kB / 0.5195 GB, free: 4.465 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.035e-05/0.1192, allocations: 3.984 kB / 0.5195 GB, free: 4.461 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.642e-06/0.1192, allocations: 4 kB / 0.5195 GB, free: 4.457 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.024e-05/0.1192, allocations: 60.2 kB / 0.5195 GB, free: 4.383 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1192, allocations: 0 / 0.5195 GB, free: 4.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.811e-05/0.1193, allocations: 63.47 kB / 0.5196 GB, free: 4.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.1193, allocations: 37.7 kB / 0.5196 GB, free: 4.266 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1194, allocations: 3.984 kB / 0.5196 GB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.1194, allocations: 3.938 kB / 0.5197 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.72e-07/0.1194, allocations: 0 / 0.5197 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.1194, allocations: 0 / 0.5197 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.365e-05/0.1194, allocations: 0 / 0.5197 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.1194, allocations: 0 / 0.5197 GB, free: 4.258 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.361e-05/0.1195, allocations: 135.5 kB / 0.5198 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.833e-06/0.1195, allocations: 4.031 kB / 0.5198 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.758e-06/0.1195, allocations: 6.938 kB / 0.5198 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.41e-07/0.1195, allocations: 0 / 0.5198 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.1195, allocations: 0 / 0.5198 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.1195, allocations: 4 kB / 0.5198 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.247e-05/0.1196, allocations: 116.8 kB / 0.5199 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.1196, allocations: 4 kB / 0.5199 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1196, allocations: 0 / 0.5199 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.1196, allocations: 0 / 0.5199 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-06/0.1196, allocations: 7.938 kB / 0.5199 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.1196, allocations: 3.938 kB / 0.5199 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1196, allocations: 4 kB / 0.5199 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.323e-05/0.1197, allocations: 90.83 kB / 0.52 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.705e-06/0.1197, allocations: 3.938 kB / 0.52 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.1197, allocations: 11.88 kB / 0.52 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.468e-06/0.1197, allocations: 4 kB / 0.52 GB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.075e-06/0.1197, allocations: 0 / 0.52 GB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-06/0.1197, allocations: 4 kB / 0.52 GB, free: 3.785 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.112e-05/0.1198, allocations: 83.3 kB / 0.5201 GB, free: 3.703 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1198, allocations: 0 / 0.5201 GB, free: 3.703 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001985/0.12, allocations: 19.88 kB / 0.5201 GB, free: 3.684 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.0004126/0.1204, allocations: 187.2 kB / 0.5203 GB, free: 3.508 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.793e-05/0.1205, allocations: 67.34 kB / 0.5204 GB, free: 3.43 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.1205, allocations: 0 / 0.5204 GB, free: 3.43 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.281e-05/0.1205, allocations: 51.41 kB / 0.5204 GB, free: 3.367 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001179/0.1206, allocations: 6.5 kB / 0.5204 GB, free: 3.363 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001913/0.1208, allocations: 110.7 kB / 0.5205 GB, free: 3.223 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.1211, allocations: 0.6729 MB / 0.5212 GB, free: 2.523 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.102e-05/0.1211, allocations: 7.438 kB / 0.5212 GB, free: 2.516 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1211, allocations: 0 / 0.5212 GB, free: 2.516 MB / 398.1 MB Notification: Performance of Templates: time 0.002184/0.1233, allocations: 0.757 MB / 0.5219 GB, free: 1.758 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 6.375875198980793]