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.001331/0.001331, allocations: 105.4 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.00154/0.00154, allocations: 188 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.387/1.387, allocations: 222.9 MB / 243 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.2016/0.2016, allocations: 44.17 MB / 337.4 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 58.53 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1164, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002276/0.1188, allocations: 494.1 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000665/0.1195, allocations: 209.9 kB / 471.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.017e-05/0.1195, allocations: 0 / 471.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.146e-05/0.1195, allocations: 4 kB / 471.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.819e-06/0.1195, allocations: 0 / 471.4 MB, free: 12.98 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.0003192/0.1199, allocations: 39.84 kB / 471.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.542e-05/0.1199, allocations: 4 kB / 471.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.294e-05/0.12, allocations: 3.984 kB / 471.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.553e-05/0.12, allocations: 0 / 471.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.844e-05/0.12, allocations: 11.98 kB / 471.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.292e-06/0.1201, allocations: 0 / 471.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.1202, allocations: 51.89 kB / 471.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.444e-06/0.1202, allocations: 3.938 kB / 471.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.012e-05/0.1203, allocations: 8 kB / 471.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000138/0.1204, allocations: 47.88 kB / 471.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1204, allocations: 0 / 471.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1204, allocations: 0 / 471.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1205, allocations: 0 / 471.6 MB, free: 12.81 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.0003751/0.1208, allocations: 349.3 kB / 471.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.1209, allocations: 8.031 kB / 471.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.1209, allocations: 0.9375 kB / 471.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.1211, allocations: 164.4 kB / 472.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.1211, allocations: 4.375 kB / 472.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.1211, allocations: 8.359 kB / 472.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.776e-05/0.1212, allocations: 26.27 kB / 472.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.1212, allocations: 4.188 kB / 472.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.1213, allocations: 3.938 kB / 472.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1213, allocations: 0 / 472.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.245e-05/0.1213, allocations: 3.938 kB / 472.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001465/0.1215, allocations: 141.7 kB / 472.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.234e-05/0.1215, allocations: 22.59 kB / 472.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.308e-05/0.1215, allocations: 12.86 kB / 472.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.825e-06/0.1216, allocations: 0 / 472.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.585e-05/0.1216, allocations: 60.33 kB / 472.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.252e-06/0.1216, allocations: 0 / 472.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001835/0.1218, allocations: 67.28 kB / 472.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.514e-05/0.1219, allocations: 81.09 kB / 472.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.902e-05/0.1219, allocations: 89.86 kB / 472.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.122, allocations: 29.83 kB / 472.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.356e-05/0.122, allocations: 84.14 kB / 472.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.122, allocations: 0 / 472.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.184e-05/0.1221, allocations: 13.72 kB / 472.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1222, allocations: 310.8 kB / 473 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.031e-05/0.1222, allocations: 3.938 kB / 473 MB, free: 11.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.522e-06/0.1223, allocations: 0 / 473 MB, free: 11.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.825e-05/0.1223, allocations: 64.33 kB / 473.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1223, allocations: 0 / 473.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.825e-05/0.1224, allocations: 71.33 kB / 473.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.877e-05/0.1225, allocations: 33.7 kB / 473.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.1225, allocations: 0 / 473.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.1225, allocations: 3.938 kB / 473.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.232e-06/0.1225, allocations: 0 / 473.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.1226, allocations: 0 / 473.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.862e-05/0.1226, allocations: 0 / 473.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-06/0.1226, allocations: 3.938 kB / 473.2 MB, free: 10.9 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.823e-05/0.1227, allocations: 143.6 kB / 473.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.285e-05/0.1227, allocations: 4 kB / 473.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.883e-05/0.1228, allocations: 11.02 kB / 473.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.1228, allocations: 0 / 473.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.1228, allocations: 0 / 473.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.1228, allocations: 4 kB / 473.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001099/0.1229, allocations: 149.7 kB / 473.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1229, allocations: 0 / 473.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.1229, allocations: 0 / 473.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1229, allocations: 0 / 473.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.123, allocations: 7.938 kB / 473.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.123, allocations: 4 kB / 473.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.123, allocations: 0 / 473.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001209/0.1231, allocations: 94.75 kB / 473.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.541e-05/0.1232, allocations: 81.11 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.572e-05/0.1232, allocations: 3.938 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.281e-05/0.1232, allocations: 0 / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.751e-05/0.1232, allocations: 4.031 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-06/0.1232, allocations: 0 / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.727e-05/0.1233, allocations: 75.28 kB / 473.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1233, allocations: 4 kB / 473.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003287/0.1236, allocations: 19.98 kB / 473.8 MB, free: 10.2 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.000484/0.1241, allocations: 201.7 kB / 474 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000122/0.1243, allocations: 67.39 kB / 474 MB, free: 9.953 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1243, allocations: 4.062 kB / 474.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.23e-05/0.1243, allocations: 55.34 kB / 474.1 MB, free: 9.883 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001853/0.1245, allocations: 4 kB / 474.1 MB, free: 9.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002065/0.1248, allocations: 88.78 kB / 474.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.1251, allocations: 0.6729 MB / 474.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.412e-06/0.1251, allocations: 0 / 474.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.307e-05/0.1251, allocations: 7.438 kB / 474.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1251, allocations: 0 / 474.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of Templates: time 0.003998/0.1291, allocations: 0.5749 MB / 475.5 MB, free: 8.484 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 gbode -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