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.001054/0.001055, allocations: 110.7 kB / 17.04 MB, free: 5.812 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.0009949/0.0009949, allocations: 196 kB / 17.97 MB, free: 5.027 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.35/1.35, allocations: 205.1 MB / 223.8 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.2067/0.2067, allocations: 43.52 MB / 314.7 MB, free: 480 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.001446/0.001446, allocations: 66.23 kB / 384.2 MB, free: 56.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1119, allocations: 57.79 MB / 442 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001694/0.1136, allocations: 493.1 kB / 442.4 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004533/0.1141, allocations: 209.8 kB / 442.6 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.919e-05/0.1141, allocations: 0 / 442.6 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.265e-05/0.1142, allocations: 0 / 442.6 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.09e-06/0.1142, allocations: 0 / 442.6 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002987/0.1145, allocations: 47.83 kB / 442.7 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.948e-05/0.1145, allocations: 3.984 kB / 442.7 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.412e-05/0.1146, allocations: 4 kB / 442.7 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.718e-05/0.1146, allocations: 7.938 kB / 442.7 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.521e-05/0.1146, allocations: 0 / 442.7 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.763e-06/0.1147, allocations: 3.938 kB / 442.7 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001117/0.1148, allocations: 43.95 kB / 442.8 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.035e-06/0.1148, allocations: 4 kB / 442.8 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.242e-05/0.1148, allocations: 4 kB / 442.8 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001018/0.1149, allocations: 43.92 kB / 442.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1149, allocations: 0 / 442.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1149, allocations: 0 / 442.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.1149, allocations: 0 / 442.8 MB, free: 5.32 MB / 318.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.000227/0.1152, allocations: 357.3 kB / 443.2 MB, free: 4.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.049e-05/0.1152, allocations: 11.89 kB / 443.2 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.136e-05/0.1153, allocations: 8.844 kB / 443.2 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.411e-05/0.1153, allocations: 162.7 kB / 443.3 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.1153, allocations: 384 / 443.3 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-06/0.1153, allocations: 4.312 kB / 443.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.194e-05/0.1154, allocations: 38.19 kB / 443.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.1154, allocations: 192 / 443.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.1154, allocations: 7.938 kB / 443.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1155, allocations: 0 / 443.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.597e-05/0.1155, allocations: 0 / 443.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.695e-05/0.1156, allocations: 149.7 kB / 443.5 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.385e-05/0.1156, allocations: 18.56 kB / 443.5 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.251e-05/0.1156, allocations: 12.78 kB / 443.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.877e-06/0.1156, allocations: 4.094 kB / 443.6 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.1157, allocations: 60.27 kB / 443.6 MB, free: 4.328 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.1157, allocations: 0 / 443.6 MB, free: 4.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001528/0.1158, allocations: 67.34 kB / 443.7 MB, free: 4.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.759e-05/0.1159, allocations: 77.11 kB / 443.8 MB, free: 4.156 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.341e-05/0.1159, allocations: 93.84 kB / 443.9 MB, free: 4.055 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.101e-06/0.1159, allocations: 25.7 kB / 443.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.004e-05/0.1159, allocations: 80.14 kB / 444 MB, free: 3.941 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.86e-05/0.116, allocations: 4 kB / 444 MB, free: 3.938 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.151e-05/0.116, allocations: 13.84 kB / 444 MB, free: 3.918 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.18e-05/0.116, allocations: 314.8 kB / 444.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.007e-05/0.116, allocations: 3.938 kB / 444.3 MB, free: 3.598 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.969e-06/0.1161, allocations: 4 kB / 444.3 MB, free: 3.594 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.998e-05/0.1161, allocations: 60.27 kB / 444.4 MB, free: 3.52 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1161, allocations: 0 / 444.4 MB, free: 3.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.227e-05/0.1162, allocations: 59.39 kB / 444.4 MB, free: 3.449 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.1162, allocations: 37.7 kB / 444.4 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.1162, allocations: 4.094 kB / 444.4 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1162, allocations: 7.875 kB / 444.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.1162, allocations: 0 / 444.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.1162, allocations: 0 / 444.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.561e-05/0.1162, allocations: 3.938 kB / 444.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-06/0.1163, allocations: 4 kB / 444.5 MB, free: 3.387 MB / 318.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.565e-05/0.1163, allocations: 143.4 kB / 444.6 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.424e-06/0.1163, allocations: 0 / 444.6 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.967e-06/0.1163, allocations: 7.062 kB / 444.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.1163, allocations: 8 kB / 444.6 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.1164, allocations: 4 kB / 444.6 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1164, allocations: 3.938 kB / 444.6 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.552e-05/0.1164, allocations: 141.7 kB / 444.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1164, allocations: 3.984 kB / 444.8 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-07/0.1164, allocations: 0 / 444.8 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1164, allocations: 4 kB / 444.8 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.553e-06/0.1164, allocations: 3.938 kB / 444.8 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.1164, allocations: 0 / 444.8 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1164, allocations: 0 / 444.8 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.39e-05/0.1165, allocations: 94.83 kB / 444.9 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.481e-05/0.1165, allocations: 77.11 kB / 444.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.1166, allocations: 3.938 kB / 444.9 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.356e-06/0.1166, allocations: 0 / 444.9 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.809e-06/0.1166, allocations: 4 kB / 445 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.1166, allocations: 4 kB / 445 MB, free: 2.785 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.307e-05/0.1166, allocations: 79.22 kB / 445 MB, free: 2.707 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1166, allocations: 4.031 kB / 445 MB, free: 2.703 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000224/0.1168, allocations: 16 kB / 445.1 MB, free: 2.688 MB / 318.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.0003131/0.1172, allocations: 196.9 kB / 445.2 MB, free: 2.527 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.862e-05/0.1173, allocations: 67.39 kB / 445.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1173, allocations: 0 / 445.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.93e-05/0.1173, allocations: 51.41 kB / 445.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.1174, allocations: 4 kB / 445.4 MB, free: 2.383 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001462/0.1176, allocations: 73.02 kB / 445.4 MB, free: 2.285 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001119/0.1177, allocations: 0.6729 MB / 446.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.402e-06/0.1177, allocations: 4.125 kB / 446.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.808e-06/0.1177, allocations: 7.438 kB / 446.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1177, allocations: 0 / 446.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of Templates: time 0.002904/0.1206, allocations: 0.5865 MB / 446.7 MB, free: 0.9883 MB / 318.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 -s gbode -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