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.000992/0.000992, allocations: 95.98 kB / 17 MB, free: 6.402 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.0009788/0.0009788, allocations: 177.7 kB / 17.89 MB, free: 5.945 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.432/1.432, allocations: 223.3 MB / 241.9 MB, free: 332 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2309/0.2309, allocations: 44.25 MB / 337.3 MB, free: 2.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005378/0.0005379, allocations: 8.594 kB / 409.7 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1441, allocations: 61.93 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005089/0.1446, allocations: 205.2 kB / 471.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005412/0.1452, allocations: 198.9 kB / 472 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.645e-05/0.1452, allocations: 0 / 472 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.285e-06/0.1452, allocations: 0 / 472 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.719e-06/0.1452, allocations: 4 kB / 472 MB, free: 13.31 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.0002389/0.1455, allocations: 31.91 kB / 472 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.921e-05/0.1455, allocations: 0 / 472 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.286e-05/0.1456, allocations: 4 kB / 472 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.436e-05/0.1456, allocations: 3.938 kB / 472 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.399e-05/0.1456, allocations: 4 kB / 472 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.251e-06/0.1456, allocations: 0 / 472 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.1458, allocations: 47.94 kB / 472.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.829e-06/0.1458, allocations: 0 / 472.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.879e-05/0.1458, allocations: 29.7 kB / 472.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.718e-05/0.1459, allocations: 31.95 kB / 472.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1459, allocations: 4 kB / 472.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1459, allocations: 0 / 472.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.417e-06/0.1459, allocations: 0 / 472.1 MB, free: 13.15 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.0002889/0.1462, allocations: 349.1 kB / 472.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.1463, allocations: 8.031 kB / 472.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.291e-05/0.1463, allocations: 0 / 472.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.022e-05/0.1464, allocations: 159.1 kB / 472.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.1464, allocations: 0 / 472.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.026e-06/0.1464, allocations: 4 kB / 472.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.27e-05/0.1465, allocations: 45.58 kB / 472.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-06/0.1465, allocations: 0 / 472.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-06/0.1465, allocations: 0 / 472.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.1465, allocations: 0 / 472.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.454e-05/0.1466, allocations: 4 kB / 472.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001215/0.1467, allocations: 149.6 kB / 472.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.99e-05/0.1467, allocations: 22.59 kB / 472.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.204e-05/0.1468, allocations: 4.859 kB / 472.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.202e-06/0.1468, allocations: 4 kB / 472.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/0.1468, allocations: 64.16 kB / 472.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1468, allocations: 0 / 472.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000149/0.147, allocations: 63.47 kB / 473 MB, free: 12.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.147, allocations: 81.09 kB / 473.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.287e-05/0.1471, allocations: 93.86 kB / 473.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.152e-05/0.1471, allocations: 25.7 kB / 473.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.148e-05/0.1471, allocations: 84.27 kB / 473.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.245e-05/0.1472, allocations: 0 / 473.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.603e-06/0.1472, allocations: 0 / 473.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1473, allocations: 314.8 kB / 473.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.903e-06/0.1473, allocations: 0 / 473.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.301e-06/0.1473, allocations: 4 kB / 473.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.246e-05/0.1473, allocations: 25.7 kB / 473.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1473, allocations: 0 / 473.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.548e-05/0.1474, allocations: 67.39 kB / 473.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.1474, allocations: 33.73 kB / 473.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.1474, allocations: 0 / 473.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.1475, allocations: 11.89 kB / 473.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.01e-07/0.1475, allocations: 0 / 473.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.1475, allocations: 0 / 473.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.298e-05/0.1475, allocations: 0 / 473.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.03e-06/0.1475, allocations: 0 / 473.7 MB, free: 11.31 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.61e-05/0.1476, allocations: 140.1 kB / 473.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.898e-06/0.1476, allocations: 7.969 kB / 473.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.095e-05/0.1476, allocations: 11.08 kB / 473.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.1476, allocations: 3.953 kB / 473.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.1476, allocations: 0 / 473.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-06/0.1476, allocations: 0 / 473.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.547e-05/0.1477, allocations: 145.7 kB / 474 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1477, allocations: 0 / 474 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-07/0.1477, allocations: 0 / 474 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.1477, allocations: 0 / 474 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.1478, allocations: 3.984 kB / 474 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1478, allocations: 0 / 474 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.1478, allocations: 3.953 kB / 474 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.136e-05/0.1479, allocations: 94.78 kB / 474.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.335e-05/0.1479, allocations: 81.09 kB / 474.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.1479, allocations: 4 kB / 474.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.776e-06/0.1479, allocations: 3.938 kB / 474.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.158e-05/0.148, allocations: 0 / 474.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/0.148, allocations: 3.953 kB / 474.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.514e-05/0.148, allocations: 79.31 kB / 474.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.148, allocations: 0 / 474.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002247/0.1482, allocations: 20 kB / 474.3 MB, free: 10.61 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00045/0.1487, allocations: 201.4 kB / 474.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.129e-05/0.1488, allocations: 59.34 kB / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1488, allocations: 3.938 kB / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.289e-05/0.1488, allocations: 59.39 kB / 474.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001205/0.149, allocations: 8.125 kB / 474.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001465/0.1491, allocations: 78.67 kB / 474.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.1494, allocations: 0.6731 MB / 475.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.929e-06/0.1494, allocations: 0 / 475.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.013e-05/0.1494, allocations: 11.44 kB / 475.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1494, allocations: 0 / 475.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of Templates: time 0.003599/0.153, allocations: 0.5663 MB / 476 MB, free: 8.906 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