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.001032/0.001032, allocations: 104.7 kB / 17.63 MB, free: 5.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.001153/0.001153, allocations: 192 kB / 18.56 MB, free: 4.434 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.351/1.351, allocations: 222.9 MB / 242.2 MB, free: 15.14 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.207/0.207, allocations: 44.18 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 64.3 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1155, allocations: 60.82 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001739/0.1173, allocations: 490.6 kB / 469.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005071/0.1178, allocations: 205.9 kB / 469.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.889e-05/0.1179, allocations: 0 / 469.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.403e-05/0.1179, allocations: 0 / 469.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.749e-06/0.1179, allocations: 0 / 469.9 MB, free: 13.7 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.0002836/0.1182, allocations: 43.84 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.712e-05/0.1183, allocations: 0 / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.556e-05/0.1183, allocations: 8 kB / 470 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.564e-05/0.1183, allocations: 7.984 kB / 470 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.935e-05/0.1184, allocations: 7.922 kB / 470 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.4e-06/0.1184, allocations: 0 / 470 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001208/0.1185, allocations: 51.95 kB / 470 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.112e-06/0.1185, allocations: 0 / 470 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.927e-05/0.1185, allocations: 0 / 470 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001067/0.1186, allocations: 35.95 kB / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1186, allocations: 0 / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1187, allocations: 0 / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.878e-06/0.1187, allocations: 3.938 kB / 470.1 MB, free: 13.54 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.0002937/0.119, allocations: 361.2 kB / 470.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.119, allocations: 12.03 kB / 470.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.77e-05/0.119, allocations: 4.875 kB / 470.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.895e-05/0.1191, allocations: 160.4 kB / 470.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.1192, allocations: 4.359 kB / 470.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.896e-06/0.1192, allocations: 384 / 470.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.308e-05/0.1192, allocations: 30.27 kB / 470.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.1193, allocations: 192 / 470.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.1193, allocations: 3.938 kB / 470.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.1193, allocations: 0 / 470.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.548e-05/0.1193, allocations: 4 kB / 470.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001157/0.1194, allocations: 149.7 kB / 470.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.082e-05/0.1195, allocations: 26.5 kB / 470.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.587e-05/0.1195, allocations: 12.94 kB / 470.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.502e-06/0.1195, allocations: 0 / 470.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.548e-05/0.1196, allocations: 56.27 kB / 470.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1196, allocations: 4 kB / 470.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001455/0.1197, allocations: 63.34 kB / 471 MB, free: 12.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.1198, allocations: 85.03 kB / 471 MB, free: 12.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.128e-05/0.1198, allocations: 93.86 kB / 471.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.1198, allocations: 25.7 kB / 471.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.123e-05/0.1198, allocations: 80.14 kB / 471.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.1199, allocations: 4 kB / 471.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.651e-05/0.1199, allocations: 9.719 kB / 471.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.901e-05/0.12, allocations: 315 kB / 471.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.111e-05/0.12, allocations: 4 kB / 471.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.15e-06/0.12, allocations: 0 / 471.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.346e-05/0.1201, allocations: 64.27 kB / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1201, allocations: 0 / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.543e-05/0.1202, allocations: 67.33 kB / 471.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.671e-05/0.1202, allocations: 29.7 kB / 471.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.1202, allocations: 0 / 471.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.1202, allocations: 4.031 kB / 471.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.1202, allocations: 4 kB / 471.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.1202, allocations: 0 / 471.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.424e-05/0.1202, allocations: 0 / 471.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.1203, allocations: 4 kB / 471.7 MB, free: 11.62 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 7.649e-05/0.1203, allocations: 135.5 kB / 471.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.348e-06/0.1204, allocations: 7.938 kB / 471.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.205e-05/0.1204, allocations: 11.02 kB / 471.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1204, allocations: 0 / 471.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1204, allocations: 7.938 kB / 471.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1204, allocations: 0 / 471.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.229e-05/0.1205, allocations: 149.7 kB / 472 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.1205, allocations: 4 kB / 472 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.993e-06/0.1205, allocations: 4 kB / 472 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.1205, allocations: 0 / 472 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.1205, allocations: 3.938 kB / 472 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1205, allocations: 0 / 472 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1205, allocations: 0 / 472 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.397e-05/0.1206, allocations: 98.77 kB / 472.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.573e-05/0.1207, allocations: 77.11 kB / 472.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.1207, allocations: 3.938 kB / 472.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.358e-06/0.1207, allocations: 0 / 472.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.406e-05/0.1207, allocations: 4 kB / 472.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.1207, allocations: 0 / 472.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.565e-05/0.1207, allocations: 75.28 kB / 472.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1207, allocations: 0 / 472.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002205/0.121, allocations: 23.98 kB / 472.3 MB, free: 10.92 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.0003558/0.1213, allocations: 203 kB / 472.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.353e-05/0.1214, allocations: 59.39 kB / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.1214, allocations: 0 / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.138e-05/0.1215, allocations: 55.41 kB / 472.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001277/0.1216, allocations: 0 / 472.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001646/0.1218, allocations: 96.89 kB / 472.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002029/0.122, allocations: 0.6729 MB / 473.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.871e-06/0.122, allocations: 4 kB / 473.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.628e-06/0.122, allocations: 11.38 kB / 473.4 MB, free: 9.777 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.122, allocations: 3.938 kB / 473.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of Templates: time 0.002679/0.1247, allocations: 0.5844 MB / 474 MB, free: 9.191 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