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.00163/0.00163, allocations: 109.4 kB / 17.03 MB, free: 6.102 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.001606/0.001606, allocations: 194.9 kB / 17.96 MB, free: 5.195 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.616/1.616, allocations: 205.1 MB / 223.8 MB, free: 12.24 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.2325/0.2325, allocations: 43.53 MB / 314.7 MB, free: 464 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.001452/0.001452, allocations: 64.47 kB / 384.2 MB, free: 56.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1155, allocations: 57.8 MB / 442 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001719/0.1172, allocations: 480.5 kB / 442.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004731/0.1177, allocations: 217.7 kB / 442.6 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.286e-05/0.1177, allocations: 0 / 442.6 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.175e-05/0.1178, allocations: 0 / 442.6 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.748e-06/0.1178, allocations: 0 / 442.6 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002758/0.1181, allocations: 47.84 kB / 442.7 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.165e-05/0.1181, allocations: 7.969 kB / 442.7 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.905e-05/0.1182, allocations: 0 / 442.7 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.418e-05/0.1182, allocations: 0 / 442.7 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.212e-05/0.1182, allocations: 4 kB / 442.7 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.532e-06/0.1182, allocations: 0 / 442.7 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001041/0.1183, allocations: 43.95 kB / 442.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.522e-06/0.1183, allocations: 0 / 442.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.761e-05/0.1184, allocations: 4 kB / 442.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.814e-05/0.1185, allocations: 47.88 kB / 442.8 MB, free: 5.312 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1185, allocations: 3.938 kB / 442.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1185, allocations: 4 kB / 442.8 MB, free: 5.305 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.1185, allocations: 0 / 442.8 MB, free: 5.305 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.0002553/0.1188, allocations: 353.3 kB / 443.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.1188, allocations: 11.89 kB / 443.2 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.059e-05/0.1188, allocations: 8.844 kB / 443.2 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.95e-05/0.1189, allocations: 170.7 kB / 443.3 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.407e-06/0.1189, allocations: 384 / 443.3 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.1189, allocations: 384 / 443.3 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.399e-05/0.119, allocations: 30.27 kB / 443.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.119, allocations: 4.188 kB / 443.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.119, allocations: 3.938 kB / 443.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.119, allocations: 0 / 443.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.595e-05/0.1191, allocations: 0 / 443.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.604e-05/0.1191, allocations: 157.7 kB / 443.5 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.739e-05/0.1192, allocations: 18.52 kB / 443.5 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.103e-05/0.1192, allocations: 4.859 kB / 443.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.346e-06/0.1192, allocations: 0 / 443.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.1192, allocations: 64.33 kB / 443.6 MB, free: 4.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.1192, allocations: 0 / 443.6 MB, free: 4.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001396/0.1194, allocations: 75.27 kB / 443.7 MB, free: 4.234 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.696e-05/0.1194, allocations: 81.05 kB / 443.8 MB, free: 4.137 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.925e-05/0.1194, allocations: 93.8 kB / 443.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.912e-06/0.1195, allocations: 25.7 kB / 443.9 MB, free: 4.004 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.137e-05/0.1195, allocations: 80.14 kB / 444 MB, free: 3.922 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.741e-05/0.1195, allocations: 128 / 444 MB, free: 3.922 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.208e-05/0.1195, allocations: 17.72 kB / 444 MB, free: 3.898 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.588e-05/0.1196, allocations: 310.8 kB / 444.3 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.909e-06/0.1196, allocations: 4 kB / 444.3 MB, free: 3.582 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.851e-06/0.1196, allocations: 4 kB / 444.3 MB, free: 3.578 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.066e-05/0.1196, allocations: 60.25 kB / 444.3 MB, free: 3.504 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1196, allocations: 0 / 444.3 MB, free: 3.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.87e-05/0.1197, allocations: 63.34 kB / 444.4 MB, free: 3.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.1197, allocations: 37.8 kB / 444.4 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.1197, allocations: 0 / 444.4 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.1197, allocations: 3.938 kB / 444.4 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.924e-06/0.1198, allocations: 3.984 kB / 444.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.1198, allocations: 0 / 444.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.542e-05/0.1198, allocations: 3.938 kB / 444.5 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-06/0.1198, allocations: 0 / 444.5 MB, free: 3.375 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.787e-05/0.1198, allocations: 143.5 kB / 444.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.013e-06/0.1199, allocations: 0 / 444.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.253e-06/0.1199, allocations: 11.06 kB / 444.6 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.1199, allocations: 0 / 444.6 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.257e-06/0.1199, allocations: 4 kB / 444.6 MB, free: 3.203 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1199, allocations: 0 / 444.6 MB, free: 3.203 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.199e-05/0.1199, allocations: 145.7 kB / 444.8 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.1199, allocations: 0 / 444.8 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.12, allocations: 0 / 444.8 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.12, allocations: 0 / 444.8 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.12, allocations: 7.938 kB / 444.8 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.12, allocations: 0 / 444.8 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.12, allocations: 0 / 444.8 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.744e-05/0.12, allocations: 98.77 kB / 444.9 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.364e-05/0.1201, allocations: 77.11 kB / 444.9 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.1201, allocations: 3.938 kB / 444.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.166e-06/0.1201, allocations: 0 / 444.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.536e-05/0.1201, allocations: 0 / 444.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.397e-06/0.1201, allocations: 11.94 kB / 444.9 MB, free: 2.773 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.175e-05/0.1201, allocations: 75.28 kB / 445 MB, free: 2.699 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1201, allocations: 4.031 kB / 445 MB, free: 2.695 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002263/0.1204, allocations: 23.98 kB / 445 MB, free: 2.672 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.000318/0.1207, allocations: 198 kB / 445.2 MB, free: 2.508 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 7.406e-05/0.1208, allocations: 55.41 kB / 445.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1208, allocations: 0 / 445.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.766e-05/0.1208, allocations: 63.34 kB / 445.4 MB, free: 2.367 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000117/0.1209, allocations: 4 kB / 445.4 MB, free: 2.363 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000133/0.1211, allocations: 73.06 kB / 445.4 MB, free: 2.266 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.889e-05/0.1212, allocations: 0.673 MB / 446.1 MB, free: 1.566 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.811e-06/0.1212, allocations: 0 / 446.1 MB, free: 1.566 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.855e-06/0.1212, allocations: 7.438 kB / 446.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1212, allocations: 0 / 446.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of Templates: time 0.002564/0.1238, allocations: 0.5788 MB / 446.7 MB, free: 0.9805 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 cvode -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