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.001132/0.001132, allocations: 109.8 kB / 17.33 MB, free: 6.023 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.001207/0.001207, allocations: 193.3 kB / 18.25 MB, free: 5.117 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.412/1.412, allocations: 222.9 MB / 241.9 MB, free: 13.73 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.2188/0.2188, allocations: 44.18 MB / 336.2 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 64.56 kB / 407.9 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1316, allocations: 60.82 MB / 468.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002033/0.1337, allocations: 0.5439 MB / 469.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000526/0.1342, allocations: 206 kB / 469.4 MB, free: 14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.645e-05/0.1342, allocations: 0 / 469.4 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.427e-05/0.1343, allocations: 0 / 469.4 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.259e-06/0.1343, allocations: 0 / 469.4 MB, free: 14 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.0003201/0.1346, allocations: 39.91 kB / 469.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.381e-05/0.1347, allocations: 7.984 kB / 469.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.945e-05/0.1348, allocations: 0 / 469.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.761e-05/0.1348, allocations: 7.938 kB / 469.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.117e-05/0.1348, allocations: 3.984 kB / 469.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-06/0.1348, allocations: 0 / 469.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.135, allocations: 43.95 kB / 469.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.634e-06/0.135, allocations: 0 / 469.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.742e-05/0.135, allocations: 4 kB / 469.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000115/0.1351, allocations: 43.89 kB / 469.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1351, allocations: 0 / 469.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1351, allocations: 0 / 469.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.1351, allocations: 4 kB / 469.6 MB, free: 13.85 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.0003295/0.1355, allocations: 353.3 kB / 469.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.1355, allocations: 11.97 kB / 470 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.201e-05/0.1356, allocations: 4.938 kB / 470 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.847e-05/0.1357, allocations: 172.3 kB / 470.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.1357, allocations: 4.359 kB / 470.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.708e-06/0.1357, allocations: 384 / 470.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.06e-05/0.1358, allocations: 30.27 kB / 470.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.483e-06/0.1358, allocations: 4.188 kB / 470.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.1358, allocations: 3.938 kB / 470.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.1358, allocations: 0 / 470.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.803e-05/0.1358, allocations: 0 / 470.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001455/0.136, allocations: 153.7 kB / 470.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.067e-05/0.136, allocations: 18.52 kB / 470.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.443e-05/0.1361, allocations: 4.859 kB / 470.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.721e-06/0.1361, allocations: 0 / 470.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.361e-05/0.1361, allocations: 64.33 kB / 470.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1361, allocations: 0 / 470.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001673/0.1363, allocations: 71.33 kB / 470.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/0.1364, allocations: 77.11 kB / 470.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.659e-05/0.1364, allocations: 93.8 kB / 470.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.1364, allocations: 25.7 kB / 470.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.281e-05/0.1365, allocations: 80.14 kB / 470.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.543e-05/0.1365, allocations: 128 / 470.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.062e-05/0.1365, allocations: 17.72 kB / 470.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1366, allocations: 310.8 kB / 471.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.408e-06/0.1367, allocations: 0 / 471.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.082e-05/0.1367, allocations: 8 kB / 471.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.995e-05/0.1367, allocations: 60.25 kB / 471.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1367, allocations: 4 kB / 471.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.621e-05/0.1368, allocations: 59.41 kB / 471.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.208e-05/0.1369, allocations: 37.8 kB / 471.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1369, allocations: 0 / 471.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.1369, allocations: 3.938 kB / 471.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.444e-06/0.1369, allocations: 7.922 kB / 471.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.1369, allocations: 3.984 kB / 471.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.506e-05/0.1369, allocations: 0 / 471.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.1369, allocations: 0 / 471.3 MB, free: 11.92 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.811e-05/0.137, allocations: 143.5 kB / 471.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.618e-06/0.1371, allocations: 3.938 kB / 471.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.533e-05/0.1371, allocations: 15.02 kB / 471.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.1371, allocations: 0 / 471.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.1371, allocations: 4 kB / 471.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.1371, allocations: 0 / 471.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.34e-05/0.1372, allocations: 145.7 kB / 471.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1372, allocations: 0 / 471.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.1372, allocations: 0 / 471.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1372, allocations: 0 / 471.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.1372, allocations: 7.938 kB / 471.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1372, allocations: 0 / 471.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1372, allocations: 0 / 471.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.424e-05/0.1373, allocations: 94.83 kB / 471.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.504e-05/0.1374, allocations: 81.05 kB / 471.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.474e-05/0.1374, allocations: 3.938 kB / 471.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.398e-06/0.1374, allocations: 0 / 471.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.602e-05/0.1374, allocations: 0 / 471.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.1374, allocations: 4 kB / 471.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.888e-05/0.1375, allocations: 75.28 kB / 471.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1375, allocations: 4.031 kB / 471.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002258/0.1377, allocations: 23.98 kB / 471.8 MB, free: 11.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.0003945/0.1381, allocations: 199.2 kB / 472 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.279e-05/0.1382, allocations: 59.41 kB / 472.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1382, allocations: 0 / 472.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.465e-05/0.1383, allocations: 59.41 kB / 472.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001283/0.1384, allocations: 4.062 kB / 472.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001863/0.1386, allocations: 88.77 kB / 472.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.1389, allocations: 0.6767 MB / 472.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.005e-06/0.1389, allocations: 3.938 kB / 472.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.108e-05/0.1389, allocations: 7.438 kB / 472.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1389, allocations: 0 / 472.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of Templates: time 0.003057/0.142, allocations: 0.5816 MB / 473.5 MB, free: 9.504 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