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.001134/0.001134, allocations: 101.9 kB / 17.08 MB, free: 5.82 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.001214/0.001214, allocations: 195.3 kB / 18.02 MB, free: 4.965 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.298/1.298, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.2158/0.2158, allocations: 43.53 MB / 314.8 MB, free: 460 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.001463/0.001463, allocations: 63.89 kB / 442.5 MB, free: 5.699 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.125, allocations: 57.79 MB / 0.4885 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001759/0.1268, allocations: 494.9 kB / 0.489 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006441/0.1274, allocations: 204 kB / 0.4892 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.544e-05/0.1275, allocations: 0 / 0.4892 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.669e-05/0.1275, allocations: 3.938 kB / 0.4892 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.033e-06/0.1275, allocations: 4 kB / 0.4892 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003603/0.1279, allocations: 39.89 kB / 0.4892 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.877e-05/0.128, allocations: 4 kB / 0.4892 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.197e-05/0.1281, allocations: 7.938 kB / 0.4892 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.824e-05/0.1281, allocations: 0 / 0.4892 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.458e-05/0.1282, allocations: 0 / 0.4892 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.925e-06/0.1282, allocations: 0 / 0.4892 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001466/0.1283, allocations: 51.89 kB / 0.4893 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.729e-06/0.1283, allocations: 7.922 kB / 0.4893 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.079e-05/0.1284, allocations: 4 kB / 0.4893 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.1285, allocations: 39.94 kB / 0.4893 GB, free: 10.99 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1285, allocations: 0 / 0.4893 GB, free: 10.99 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1285, allocations: 4 kB / 0.4893 GB, free: 10.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1285, allocations: 4 kB / 0.4894 GB, free: 10.98 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.0003423/0.1289, allocations: 349.3 kB / 0.4897 GB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.1289, allocations: 15.89 kB / 0.4897 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.656e-05/0.129, allocations: 0.9375 kB / 0.4897 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.964e-05/0.1291, allocations: 164.3 kB / 0.4899 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.1291, allocations: 384 / 0.4899 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.1291, allocations: 384 / 0.4899 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001014/0.1292, allocations: 34.25 kB / 0.4899 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.1292, allocations: 4.125 kB / 0.4899 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.1292, allocations: 7.938 kB / 0.4899 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.1293, allocations: 3.938 kB / 0.4899 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.865e-05/0.1293, allocations: 4 kB / 0.4899 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001347/0.1294, allocations: 149.6 kB / 0.4901 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.499e-05/0.1295, allocations: 14.58 kB / 0.4901 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.679e-05/0.1295, allocations: 8.953 kB / 0.4901 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.114e-05/0.1295, allocations: 3.984 kB / 0.4901 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.1296, allocations: 60.27 kB / 0.4901 GB, free: 10 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 4.809e-06/0.1296, allocations: 0 / 0.4901 GB, free: 10 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001784/0.1298, allocations: 71.28 kB / 0.4902 GB, free: 9.922 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.1298, allocations: 77.11 kB / 0.4903 GB, free: 9.828 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.436e-05/0.1299, allocations: 89.86 kB / 0.4904 GB, free: 9.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.328e-05/0.1299, allocations: 25.7 kB / 0.4904 GB, free: 9.699 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.589e-05/0.1299, allocations: 84.12 kB / 0.4905 GB, free: 9.613 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.892e-05/0.1299, allocations: 4 kB / 0.4905 GB, free: 9.609 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.958e-05/0.13, allocations: 13.84 kB / 0.4905 GB, free: 9.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1301, allocations: 314.8 kB / 0.4908 GB, free: 9.273 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.323e-05/0.1301, allocations: 4 kB / 0.4908 GB, free: 9.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.302e-06/0.1301, allocations: 0 / 0.4908 GB, free: 9.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.269e-05/0.1302, allocations: 64.2 kB / 0.4909 GB, free: 9.191 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1302, allocations: 0 / 0.4909 GB, free: 9.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.153e-05/0.1303, allocations: 63.39 kB / 0.4909 GB, free: 9.117 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.1303, allocations: 33.8 kB / 0.4909 GB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.1303, allocations: 0 / 0.4909 GB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.1304, allocations: 3.938 kB / 0.4909 GB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.477e-06/0.1304, allocations: 3.984 kB / 0.491 GB, free: 9.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.1304, allocations: 0 / 0.491 GB, free: 9.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.07e-05/0.1304, allocations: 11.94 kB / 0.491 GB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-06/0.1304, allocations: 0 / 0.491 GB, free: 9.059 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.427e-05/0.1305, allocations: 139.5 kB / 0.4911 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.378e-05/0.1305, allocations: 4 kB / 0.4911 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.646e-05/0.1306, allocations: 7.125 kB / 0.4911 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.1306, allocations: 3.938 kB / 0.4911 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1306, allocations: 0 / 0.4911 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.387e-05/0.1306, allocations: 77.11 kB / 0.4912 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.1306, allocations: 4 kB / 0.4912 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.167e-05/0.1307, allocations: 0 / 0.4912 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.029e-05/0.1307, allocations: 7.938 kB / 0.4912 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001673/0.1309, allocations: 202 kB / 0.4914 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000164/0.131, allocations: 244.5 kB / 0.4916 GB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.674e-05/0.1311, allocations: 0 / 0.4916 GB, free: 8.297 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.819e-05/0.1311, allocations: 75.28 kB / 0.4917 GB, free: 8.223 MB / 382.1 MB Notification: Performance of Backend: time 4.01e-07/0.1311, allocations: 3.938 kB / 0.4917 GB, free: 8.219 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006965/0.1318, allocations: 231.3 kB / 0.4919 GB, free: 8 MB / 382.1 MB Notification: Performance of SimCode: time 0.0003854/0.1322, allocations: 0.5872 MB / 0.4925 GB, free: 7.352 MB / 382.1 MB Notification: Performance of Templates: time 0.003167/0.1354, allocations: 0.6022 MB / 0.4931 GB, free: 6.75 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