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.001421/0.001427, allocations: 104.6 kB / 16.27 MB, free: 6.41 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.001741/0.001741, allocations: 191.8 kB / 17.2 MB, free: 5.953 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.686/1.686, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.2764/0.2764, allocations: 43.53 MB / 313.9 MB, free: 0.5156 MB / 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.001693/0.001693, allocations: 69.86 kB / 382.7 MB, free: 56.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1139, allocations: 57.8 MB / 440.5 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001667/0.1156, allocations: 489.4 kB / 441 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004611/0.116, allocations: 209.6 kB / 441.2 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.642e-05/0.1161, allocations: 0 / 441.2 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.177e-05/0.1161, allocations: 3.938 kB / 441.2 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.51e-06/0.1161, allocations: 0 / 441.2 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003103/0.1165, allocations: 39.84 kB / 441.2 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.108e-05/0.1165, allocations: 4 kB / 441.2 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.332e-05/0.1166, allocations: 3.984 kB / 441.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.845e-05/0.1166, allocations: 4 kB / 441.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.559e-05/0.1166, allocations: 4 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.165e-06/0.1166, allocations: 4 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.1168, allocations: 51.94 kB / 441.3 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.856e-06/0.1168, allocations: 0 / 441.3 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.106e-05/0.1168, allocations: 0 / 441.3 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.1169, allocations: 47.89 kB / 441.4 MB, free: 6.066 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1169, allocations: 0 / 441.4 MB, free: 6.066 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.117, allocations: 0 / 441.4 MB, free: 6.066 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.117, allocations: 0 / 441.4 MB, free: 6.066 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.0002865/0.1173, allocations: 353.3 kB / 441.7 MB, free: 5.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.1173, allocations: 11.89 kB / 441.7 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.874e-05/0.1173, allocations: 4.844 kB / 441.7 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.503e-05/0.1174, allocations: 164.4 kB / 441.9 MB, free: 5.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.1174, allocations: 8.375 kB / 441.9 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.1175, allocations: 384 / 441.9 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.726e-05/0.1176, allocations: 32.5 kB / 441.9 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.1176, allocations: 192 / 441.9 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.1176, allocations: 7.938 kB / 441.9 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.1176, allocations: 0 / 441.9 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.038e-05/0.1176, allocations: 4 kB / 441.9 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001028/0.1177, allocations: 145.7 kB / 442.1 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.634e-05/0.1178, allocations: 18.61 kB / 442.1 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.39e-05/0.1178, allocations: 8.859 kB / 442.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.338e-06/0.1178, allocations: 0 / 442.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/0.1179, allocations: 60.27 kB / 442.2 MB, free: 5.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1179, allocations: 8 kB / 442.2 MB, free: 5.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001677/0.118, allocations: 63.33 kB / 442.2 MB, free: 5.008 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.1181, allocations: 81.11 kB / 442.3 MB, free: 4.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.192e-05/0.1181, allocations: 89.86 kB / 442.4 MB, free: 4.812 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.791e-06/0.1181, allocations: 29.64 kB / 442.4 MB, free: 4.777 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.365e-05/0.1181, allocations: 88.12 kB / 442.5 MB, free: 4.688 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.57e-05/0.1182, allocations: 288 / 442.5 MB, free: 4.688 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.283e-05/0.1182, allocations: 17.66 kB / 442.5 MB, free: 4.664 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.094e-05/0.1182, allocations: 315 kB / 442.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.052e-05/0.1183, allocations: 0 / 442.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.891e-06/0.1183, allocations: 0 / 442.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.589e-05/0.1183, allocations: 68.19 kB / 442.9 MB, free: 4.266 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1183, allocations: 0 / 442.9 MB, free: 4.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.914e-05/0.1184, allocations: 63.41 kB / 443 MB, free: 4.191 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/0.1184, allocations: 29.7 kB / 443 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.1184, allocations: 0 / 443 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.1184, allocations: 8.031 kB / 443 MB, free: 4.148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.1184, allocations: 4 kB / 443 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.1185, allocations: 0 / 443 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.918e-05/0.1185, allocations: 7.938 kB / 443 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.1185, allocations: 3.984 kB / 443 MB, free: 4.133 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 5.27e-05/0.1186, allocations: 139.5 kB / 443.2 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.785e-06/0.1186, allocations: 0 / 443.2 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.08e-05/0.1186, allocations: 7.062 kB / 443.2 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.1186, allocations: 0 / 443.2 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.1186, allocations: 0 / 443.2 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1186, allocations: 4 kB / 443.2 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.046e-05/0.1187, allocations: 153.7 kB / 443.3 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1187, allocations: 0 / 443.3 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.243e-06/0.1187, allocations: 3.938 kB / 443.3 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.1187, allocations: 0 / 443.3 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.1187, allocations: 3.938 kB / 443.3 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1187, allocations: 0 / 443.3 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.1187, allocations: 4 kB / 443.3 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.946e-05/0.1188, allocations: 90.83 kB / 443.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.778e-05/0.1188, allocations: 77.11 kB / 443.5 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.1188, allocations: 7.938 kB / 443.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.045e-05/0.1188, allocations: 0 / 443.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.507e-05/0.1189, allocations: 0 / 443.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-06/0.1189, allocations: 3.984 kB / 443.5 MB, free: 3.539 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.227e-05/0.1189, allocations: 79.22 kB / 443.6 MB, free: 3.461 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1189, allocations: 0 / 443.6 MB, free: 3.461 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002655/0.1192, allocations: 15.98 kB / 443.6 MB, free: 3.445 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.0003648/0.1195, allocations: 200.4 kB / 443.8 MB, free: 3.273 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.526e-05/0.1196, allocations: 63.34 kB / 443.9 MB, free: 3.199 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1197, allocations: 0 / 443.9 MB, free: 3.199 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.052e-05/0.1197, allocations: 59.39 kB / 443.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.1198, allocations: 5.688 kB / 443.9 MB, free: 3.125 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001962/0.12, allocations: 77.06 kB / 444 MB, free: 3.023 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001296/0.1202, allocations: 0.6729 MB / 444.7 MB, free: 2.324 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.324e-06/0.1202, allocations: 0 / 444.7 MB, free: 2.324 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.054e-05/0.1202, allocations: 7.438 kB / 444.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1202, allocations: 4.125 kB / 444.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of Templates: time 0.003061/0.1233, allocations: 0.5786 MB / 445.3 MB, free: 1.738 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches