Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00131/0.00131, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001289/0.001289, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2268/0.2268, allocations: 46.12 MB / 344.2 MB, free: 11.56 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002311/0.002312, allocations: 83.44 kB / 417.6 MB, free: 19.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1275, allocations: 62.45 MB / 480.1 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00172/0.1292, allocations: 483 kB / 480.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005596/0.1298, allocations: 218.1 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.586e-05/0.1298, allocations: 0 / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.905e-05/0.1299, allocations: 0 / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.69e-06/0.1299, allocations: 0 / 480.8 MB, free: 4.57 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:289:3-320: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.000333/0.1302, allocations: 47.83 kB / 480.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.711e-05/0.1303, allocations: 3.938 kB / 480.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.854e-05/0.1303, allocations: 0 / 480.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.07e-05/0.1303, allocations: 8 kB / 480.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.093e-05/0.1304, allocations: 0 / 480.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.302e-06/0.1304, allocations: 0 / 480.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.1305, allocations: 51.94 kB / 480.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.103e-06/0.1305, allocations: 4 kB / 480.9 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.294e-05/0.1306, allocations: 4 kB / 480.9 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.1307, allocations: 39.94 kB / 480.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1307, allocations: 0 / 480.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1307, allocations: 0 / 480.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.1307, allocations: 0 / 480.9 MB, free: 4.414 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.0003989/0.1311, allocations: 357.2 kB / 481.3 MB, free: 4.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.1312, allocations: 8.031 kB / 481.3 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.889e-05/0.1312, allocations: 4.938 kB / 481.3 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.1313, allocations: 164.4 kB / 481.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.1314, allocations: 4.375 kB / 481.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.078e-05/0.1314, allocations: 384 / 481.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.339e-05/0.1315, allocations: 38.19 kB / 481.5 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.1315, allocations: 192 / 481.5 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.1315, allocations: 3.938 kB / 481.5 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.1315, allocations: 0 / 481.5 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.568e-05/0.1315, allocations: 0 / 481.5 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001514/0.1317, allocations: 145.7 kB / 481.6 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.982e-05/0.1317, allocations: 22.52 kB / 481.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.56e-05/0.1318, allocations: 8.859 kB / 481.7 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.1318, allocations: 0 / 481.7 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.785e-05/0.1318, allocations: 64.34 kB / 481.7 MB, free: 3.434 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1318, allocations: 0 / 481.7 MB, free: 3.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001748/0.132, allocations: 67.33 kB / 481.8 MB, free: 3.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/0.1321, allocations: 81.05 kB / 481.9 MB, free: 3.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.942e-05/0.1321, allocations: 93.98 kB / 482 MB, free: 3.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.1322, allocations: 29.7 kB / 482 MB, free: 3.121 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.305e-05/0.1322, allocations: 80.14 kB / 482.1 MB, free: 3.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.678e-05/0.1322, allocations: 0 / 482.1 MB, free: 3.039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.055e-05/0.1323, allocations: 17.7 kB / 482.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.1324, allocations: 310.8 kB / 482.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.646e-06/0.1324, allocations: 0 / 482.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.438e-06/0.1324, allocations: 4 kB / 482.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.905e-05/0.1325, allocations: 60.33 kB / 482.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1325, allocations: 4 kB / 482.5 MB, free: 2.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.254e-05/0.1326, allocations: 67.33 kB / 482.5 MB, free: 2.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.166e-05/0.1326, allocations: 33.7 kB / 482.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.167e-06/0.1326, allocations: 0 / 482.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.1327, allocations: 3.938 kB / 482.6 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.645e-06/0.1327, allocations: 7.938 kB / 482.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.1327, allocations: 0 / 482.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.219e-05/0.1327, allocations: 0 / 482.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.199e-06/0.1327, allocations: 0 / 482.6 MB, free: 2.492 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.21e-05/0.1328, allocations: 139.6 kB / 482.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.174e-06/0.1328, allocations: 0 / 482.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.202e-05/0.1328, allocations: 11.05 kB / 482.7 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.1328, allocations: 0 / 482.7 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1328, allocations: 4 kB / 482.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.1328, allocations: 0 / 482.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001152/0.133, allocations: 145.7 kB / 482.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.133, allocations: 0 / 482.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.133, allocations: 0 / 482.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.133, allocations: 4 kB / 482.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.133, allocations: 11.92 kB / 482.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.133, allocations: 3.938 kB / 482.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.133, allocations: 0 / 482.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001013/0.1331, allocations: 90.78 kB / 483 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.924e-05/0.1332, allocations: 81.09 kB / 483.1 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.434e-05/0.1332, allocations: 3.938 kB / 483.1 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.04e-05/0.1332, allocations: 4.031 kB / 483.1 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.355e-05/0.1332, allocations: 0 / 483.1 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.1333, allocations: 4 kB / 483.1 MB, free: 1.895 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.322e-05/0.1333, allocations: 75.28 kB / 483.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1333, allocations: 0 / 483.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002019/0.1335, allocations: 16 kB / 483.2 MB, free: 1.805 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.0004683/0.134, allocations: 212.5 kB / 483.4 MB, free: 1.613 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000111/0.1341, allocations: 63.41 kB / 483.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.1341, allocations: 0 / 483.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.871e-05/0.1342, allocations: 63.33 kB / 483.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001289/0.1343, allocations: 0 / 483.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001775/0.1345, allocations: 88.78 kB / 483.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003096/0.1348, allocations: 0.669 MB / 484.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.635e-06/0.1348, allocations: 3.984 kB / 484.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.15e-05/0.1348, allocations: 11.44 kB / 484.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1348, allocations: 128 / 484.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of Templates: time 0.003359/0.1382, allocations: 0.567 MB / 484.8 MB, free: 80 kB / 350.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches