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.001297/0.001297, allocations: 104.3 kB / 18.4 MB, free: 4.57 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: 187 kB / 19.34 MB, free: 3.641 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.479/1.479, allocations: 222.9 MB / 243 MB, free: 15.09 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.2225/0.2225, allocations: 44.18 MB / 337.4 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 63.67 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1268, allocations: 60.82 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002103/0.1289, allocations: 489.9 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005635/0.1295, allocations: 213.9 kB / 471.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.007e-05/0.1296, allocations: 0 / 471.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.518e-05/0.1296, allocations: 3.938 kB / 471.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.498e-06/0.1296, allocations: 0 / 471.4 MB, free: 12.99 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.0003127/0.1299, allocations: 39.89 kB / 471.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.313e-05/0.13, allocations: 4 kB / 471.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.947e-05/0.1301, allocations: 3.938 kB / 471.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.721e-05/0.1301, allocations: 0 / 471.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.719e-05/0.1301, allocations: 4 kB / 471.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.506e-06/0.1301, allocations: 0 / 471.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002024/0.1303, allocations: 55.94 kB / 471.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.322e-05/0.1304, allocations: 0 / 471.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.924e-05/0.1304, allocations: 3.984 kB / 471.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000182/0.1306, allocations: 43.95 kB / 471.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1306, allocations: 3.938 kB / 471.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.1306, allocations: 0 / 471.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.1306, allocations: 0 / 471.5 MB, free: 12.83 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.0005112/0.1312, allocations: 357.2 kB / 471.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.1312, allocations: 12.03 kB / 471.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.949e-05/0.1313, allocations: 0.9375 kB / 471.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.1314, allocations: 160.4 kB / 472.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.1314, allocations: 384 / 472.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.495e-06/0.1315, allocations: 4.375 kB / 472.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.1316, allocations: 34.23 kB / 472.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1316, allocations: 4.125 kB / 472.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.1316, allocations: 3.938 kB / 472.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.1316, allocations: 4 kB / 472.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.232e-05/0.1317, allocations: 4 kB / 472.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001846/0.1318, allocations: 145.7 kB / 472.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.683e-05/0.1319, allocations: 18.61 kB / 472.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.971e-05/0.1319, allocations: 8.844 kB / 472.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.437e-06/0.1319, allocations: 0 / 472.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.547e-05/0.132, allocations: 56.27 kB / 472.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.806e-06/0.132, allocations: 0 / 472.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002136/0.1322, allocations: 75.34 kB / 472.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/0.1323, allocations: 81.11 kB / 472.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.732e-05/0.1324, allocations: 93.84 kB / 472.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.1324, allocations: 25.7 kB / 472.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.69e-05/0.1324, allocations: 84.12 kB / 472.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.571e-05/0.1324, allocations: 0 / 472.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.1325, allocations: 13.72 kB / 472.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.1326, allocations: 311 kB / 473 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.109e-05/0.1326, allocations: 4 kB / 473 MB, free: 11.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.953e-06/0.1326, allocations: 7.938 kB / 473 MB, free: 11.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.628e-05/0.1327, allocations: 64.2 kB / 473.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.1327, allocations: 0 / 473.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.335e-05/0.1328, allocations: 63.39 kB / 473.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.1328, allocations: 29.7 kB / 473.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.1328, allocations: 0 / 473.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.1328, allocations: 7.938 kB / 473.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.81e-07/0.1328, allocations: 4.094 kB / 473.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.1328, allocations: 0 / 473.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.607e-05/0.1329, allocations: 0 / 473.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.582e-06/0.1329, allocations: 0 / 473.2 MB, free: 10.91 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 8.021e-05/0.133, allocations: 143.5 kB / 473.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.937e-06/0.133, allocations: 4 kB / 473.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.402e-05/0.133, allocations: 11.02 kB / 473.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.133, allocations: 0 / 473.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.133, allocations: 0 / 473.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.133, allocations: 7.938 kB / 473.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.231e-05/0.1331, allocations: 145.7 kB / 473.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1331, allocations: 3.984 kB / 473.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.1331, allocations: 0 / 473.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.1331, allocations: 0 / 473.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.1332, allocations: 7.875 kB / 473.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.1332, allocations: 0 / 473.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1332, allocations: 0 / 473.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.707e-05/0.1333, allocations: 94.83 kB / 473.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/0.1333, allocations: 77.11 kB / 473.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.1333, allocations: 7.938 kB / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-06/0.1334, allocations: 0 / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.589e-05/0.1334, allocations: 0 / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.1334, allocations: 0 / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.448e-05/0.1334, allocations: 75.28 kB / 473.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1334, allocations: 0 / 473.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002489/0.1337, allocations: 20 kB / 473.8 MB, free: 10.22 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.0004138/0.1341, allocations: 210.5 kB / 474 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001203/0.1342, allocations: 67.33 kB / 474 MB, free: 9.969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1342, allocations: 0 / 474 MB, free: 9.969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.604e-05/0.1343, allocations: 63.39 kB / 474.1 MB, free: 9.895 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.1344, allocations: 4 kB / 474.1 MB, free: 9.891 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001867/0.1346, allocations: 80.84 kB / 474.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002739/0.1349, allocations: 0.6769 MB / 474.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.272e-06/0.1349, allocations: 0 / 474.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.141e-05/0.1349, allocations: 7.438 kB / 474.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1349, allocations: 0 / 474.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of Templates: time 0.003035/0.138, allocations: 0.5826 MB / 475.5 MB, free: 8.492 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches