Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009198/0.0009199, allocations: 93.42 kB / 17.35 MB, free: 6.344 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.001019/0.001019, allocations: 171.3 kB / 18.25 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2202/0.2202, allocations: 44.25 MB / 337.7 MB, free: 2.434 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003048/0.0003048, allocations: 8.562 kB / 410.3 MB, free: 27.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1219, allocations: 61.93 MB / 472.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005434/0.1225, allocations: 205.2 kB / 472.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004971/0.123, allocations: 202.9 kB / 472.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.038e-05/0.123, allocations: 0 / 472.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.119e-05/0.123, allocations: 0 / 472.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.549e-06/0.123, allocations: 0 / 472.6 MB, free: 12.92 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321:16:writable] Warning: Pure function ‘ModelicaTest.Utilities.WriteFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.1233, allocations: 39.89 kB / 472.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.399e-05/0.1233, allocations: 8 kB / 472.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.671e-05/0.1234, allocations: 4 kB / 472.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.595e-05/0.1234, allocations: 0 / 472.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.115e-05/0.1234, allocations: 3.938 kB / 472.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.51e-06/0.1234, allocations: 0 / 472.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.1235, allocations: 51.94 kB / 472.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.015e-06/0.1236, allocations: 3.984 kB / 472.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.661e-05/0.1236, allocations: 25.7 kB / 472.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.1237, allocations: 39.95 kB / 472.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1237, allocations: 0 / 472.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1237, allocations: 0 / 472.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.1237, allocations: 0 / 472.8 MB, free: 12.74 MB / 350.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.0002966/0.124, allocations: 353.3 kB / 473.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.1241, allocations: 8.031 kB / 473.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.261e-05/0.1241, allocations: 4.875 kB / 473.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.937e-05/0.1242, allocations: 164.4 kB / 473.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.1242, allocations: 8.312 kB / 473.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.975e-06/0.1242, allocations: 384 / 473.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.307e-05/0.1243, allocations: 34.19 kB / 473.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.1243, allocations: 192 / 473.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.1243, allocations: 7.938 kB / 473.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.1243, allocations: 4 kB / 473.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.439e-05/0.1244, allocations: 0 / 473.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001235/0.1245, allocations: 141.7 kB / 473.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.63e-05/0.1245, allocations: 18.61 kB / 473.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.959e-05/0.1246, allocations: 20.83 kB / 473.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.152e-06/0.1246, allocations: 0 / 473.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.455e-05/0.1246, allocations: 68.27 kB / 473.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1246, allocations: 0 / 473.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001507/0.1248, allocations: 59.34 kB / 473.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.168e-05/0.1248, allocations: 81.11 kB / 473.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.831e-05/0.1249, allocations: 93.84 kB / 473.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.162e-05/0.1249, allocations: 25.7 kB / 473.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.245e-05/0.1249, allocations: 84.14 kB / 474 MB, free: 11.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.079e-05/0.125, allocations: 0 / 474 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.166e-05/0.125, allocations: 9.719 kB / 474 MB, free: 11.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.1251, allocations: 315 kB / 474.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.296e-06/0.1251, allocations: 4 kB / 474.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.881e-06/0.1251, allocations: 0 / 474.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.342e-05/0.1252, allocations: 64.2 kB / 474.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1252, allocations: 0 / 474.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.41e-05/0.1253, allocations: 67.39 kB / 474.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.342e-05/0.1253, allocations: 29.7 kB / 474.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.1253, allocations: 0 / 474.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.1253, allocations: 8.031 kB / 474.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.1253, allocations: 0 / 474.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.1253, allocations: 0 / 474.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.825e-05/0.1254, allocations: 4 kB / 474.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.1254, allocations: 0 / 474.5 MB, free: 10.82 MB / 350.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.188e-05/0.1255, allocations: 131.5 kB / 474.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.073e-05/0.1255, allocations: 11.92 kB / 474.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.124e-05/0.1255, allocations: 11.02 kB / 474.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.1255, allocations: 0 / 474.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1255, allocations: 4 kB / 474.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.1255, allocations: 3.938 kB / 474.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.064e-05/0.1256, allocations: 145.7 kB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1256, allocations: 4 kB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1256, allocations: 0 / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.1257, allocations: 7.922 kB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.1257, allocations: 3.938 kB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1257, allocations: 0 / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1257, allocations: 0 / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.876e-05/0.1258, allocations: 90.84 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.215e-05/0.1258, allocations: 81.09 kB / 474.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.1259, allocations: 3.938 kB / 474.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.985e-06/0.1259, allocations: 0 / 474.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.13e-05/0.1259, allocations: 7.984 kB / 475 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.1259, allocations: 0 / 475 MB, free: 10.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.464e-05/0.1259, allocations: 75.28 kB / 475 MB, free: 10.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1259, allocations: 0 / 475 MB, free: 10.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002038/0.1261, allocations: 16 kB / 475 MB, free: 10.12 MB / 350.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.0004246/0.1266, allocations: 210.8 kB / 475.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.397e-05/0.1267, allocations: 59.41 kB / 475.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1267, allocations: 0 / 475.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.326e-05/0.1267, allocations: 59.39 kB / 475.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.1269, allocations: 3.375 kB / 475.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002101/0.1271, allocations: 90.73 kB / 475.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002671/0.1273, allocations: 0.6692 MB / 476.1 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.055e-06/0.1274, allocations: 3.984 kB / 476.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.036e-05/0.1274, allocations: 7.438 kB / 476.1 MB, free: 8.984 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1274, allocations: 0 / 476.1 MB, free: 8.984 MB / 350.1 MB Notification: Performance of Templates: time 0.002965/0.1304, allocations: 0.5708 MB / 476.7 MB, free: 8.414 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches