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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 103.7 kB / 17.08 MB, free: 5.836 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 195.3 kB / 18.02 MB, free: 4.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.31/1.31, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1973/0.1973, allocations: 43.53 MB / 314.8 MB, free: 476 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 63.91 kB / 442.5 MB, free: 5.715 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1107, allocations: 57.79 MB / 0.4885 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00158/0.1123, allocations: 494.9 kB / 0.489 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005236/0.1129, allocations: 200 kB / 0.4892 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.705e-05/0.1129, allocations: 0 / 0.4892 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.187e-05/0.113, allocations: 3.938 kB / 0.4892 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.11e-06/0.113, allocations: 0 / 0.4892 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002769/0.1133, allocations: 51.83 kB / 0.4892 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.336e-05/0.1133, allocations: 7.984 kB / 0.4892 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.165e-05/0.1134, allocations: 4 kB / 0.4892 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.738e-05/0.1134, allocations: 0 / 0.4892 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.915e-05/0.1134, allocations: 0 / 0.4892 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.601e-06/0.1134, allocations: 0 / 0.4892 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001274/0.1136, allocations: 47.95 kB / 0.4893 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.035e-06/0.1136, allocations: 0 / 0.4893 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.743e-05/0.1136, allocations: 11.86 kB / 0.4893 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.1137, allocations: 39.95 kB / 0.4893 GB, free: 11.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1137, allocations: 0 / 0.4893 GB, free: 11.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1137, allocations: 4 kB / 0.4893 GB, free: 11.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.1138, allocations: 0 / 0.4893 GB, free: 11.01 MB / 382.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.0002992/0.1141, allocations: 353.3 kB / 0.4897 GB, free: 10.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.1141, allocations: 15.89 kB / 0.4897 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.876e-05/0.1141, allocations: 0.9375 kB / 0.4897 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.195e-05/0.1142, allocations: 168.3 kB / 0.4899 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.1143, allocations: 384 / 0.4899 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.049e-05/0.1143, allocations: 384 / 0.4899 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.803e-05/0.1144, allocations: 34.2 kB / 0.4899 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-06/0.1144, allocations: 4.188 kB / 0.4899 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.806e-06/0.1144, allocations: 3.938 kB / 0.4899 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.1144, allocations: 3.984 kB / 0.4899 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.597e-05/0.1144, allocations: 3.938 kB / 0.4899 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000126/0.1145, allocations: 157.6 kB / 0.4901 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.613e-05/0.1146, allocations: 14.58 kB / 0.4901 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.315e-05/0.1146, allocations: 4.953 kB / 0.4901 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.186e-06/0.1146, allocations: 8 kB / 0.4901 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.55e-05/0.1147, allocations: 60.2 kB / 0.4901 GB, free: 10.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1147, allocations: 0 / 0.4901 GB, free: 10.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001508/0.1148, allocations: 71.33 kB / 0.4902 GB, free: 9.938 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.1149, allocations: 77.11 kB / 0.4903 GB, free: 9.844 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.552e-05/0.1149, allocations: 89.86 kB / 0.4904 GB, free: 9.746 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.081e-05/0.1149, allocations: 25.7 kB / 0.4904 GB, free: 9.715 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.239e-05/0.115, allocations: 80.14 kB / 0.4905 GB, free: 9.633 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.508e-05/0.115, allocations: 8.125 kB / 0.4905 GB, free: 9.625 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-05/0.115, allocations: 9.719 kB / 0.4905 GB, free: 9.609 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1151, allocations: 310.8 kB / 0.4908 GB, free: 9.297 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.328e-06/0.1151, allocations: 0 / 0.4908 GB, free: 9.297 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.142e-06/0.1152, allocations: 4 kB / 0.4908 GB, free: 9.293 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.168e-05/0.1152, allocations: 72.19 kB / 0.4909 GB, free: 9.207 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1152, allocations: 0 / 0.4909 GB, free: 9.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.64e-05/0.1153, allocations: 59.47 kB / 0.4909 GB, free: 9.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.255e-05/0.1153, allocations: 33.7 kB / 0.4909 GB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1154, allocations: 0 / 0.4909 GB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.1154, allocations: 3.938 kB / 0.4909 GB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.717e-06/0.1154, allocations: 3.984 kB / 0.491 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.1154, allocations: 0 / 0.491 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.153e-05/0.1154, allocations: 0 / 0.491 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.1155, allocations: 4 kB / 0.491 GB, free: 9.086 MB / 382.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.733e-05/0.1156, allocations: 143.4 kB / 0.4911 GB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.578e-06/0.1156, allocations: 4.031 kB / 0.4911 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.218e-05/0.1156, allocations: 7.125 kB / 0.4911 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1156, allocations: 3.938 kB / 0.4911 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1156, allocations: 0 / 0.4911 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.1157, allocations: 77.11 kB / 0.4912 GB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.1157, allocations: 3.984 kB / 0.4912 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.989e-06/0.1157, allocations: 0 / 0.4912 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.874e-05/0.1157, allocations: 7.938 kB / 0.4912 GB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001306/0.1159, allocations: 194 kB / 0.4914 GB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001366/0.116, allocations: 248.5 kB / 0.4916 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.71e-05/0.116, allocations: 0 / 0.4916 GB, free: 8.324 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.471e-05/0.1161, allocations: 79.22 kB / 0.4917 GB, free: 8.246 MB / 382.1 MB Notification: Performance of Backend: time 2.41e-07/0.1161, allocations: 0 / 0.4917 GB, free: 8.246 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005927/0.1167, allocations: 235 kB / 0.4919 GB, free: 8.023 MB / 382.1 MB Notification: Performance of SimCode: time 0.0003907/0.1171, allocations: 0.5872 MB / 0.4925 GB, free: 7.375 MB / 382.1 MB Notification: Performance of Templates: time 0.002983/0.1201, allocations: 0.6022 MB / 0.4931 GB, free: 6.773 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile (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) 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) Reference file matches