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.0009353/0.0009353, allocations: 93.38 kB / 18.01 MB, free: 5.738 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.0009256/0.0009257, allocations: 176.8 kB / 18.91 MB, free: 4.871 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.32/1.32, allocations: 223.3 MB / 243 MB, free: 14.36 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.1969/0.1969, allocations: 44.24 MB / 338.3 MB, free: 2.414 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.0003269, allocations: 8.625 kB / 411 MB, free: 27.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1135, allocations: 61.91 MB / 472.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0006485/0.1142, allocations: 209.3 kB / 473.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005437/0.1147, allocations: 202.9 kB / 473.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.232e-05/0.1148, allocations: 0 / 473.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.361e-05/0.1148, allocations: 4 kB / 473.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.169e-06/0.1148, allocations: 4 kB / 473.3 MB, free: 12.92 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.0002704/0.1151, allocations: 43.83 kB / 473.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.821e-05/0.1151, allocations: 3.984 kB / 473.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.217e-05/0.1152, allocations: 0 / 473.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.732e-05/0.1152, allocations: 4 kB / 473.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.407e-05/0.1152, allocations: 3.938 kB / 473.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.142e-06/0.1153, allocations: 0 / 473.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001278/0.1154, allocations: 47.95 kB / 473.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.923e-06/0.1154, allocations: 0 / 473.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.531e-05/0.1154, allocations: 33.69 kB / 473.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.684e-05/0.1155, allocations: 23.97 kB / 473.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1155, allocations: 4 kB / 473.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1156, allocations: 0 / 473.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1156, allocations: 0 / 473.5 MB, free: 12.75 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.0003091/0.1159, allocations: 349.3 kB / 473.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.1159, allocations: 8.031 kB / 473.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.636e-05/0.116, allocations: 0.9375 kB / 473.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.361e-05/0.116, allocations: 160.4 kB / 474 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.1161, allocations: 4.312 kB / 474 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.027e-05/0.1161, allocations: 12.31 kB / 474 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.705e-05/0.1162, allocations: 34.25 kB / 474 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.1162, allocations: 192 / 474 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.1162, allocations: 3.938 kB / 474 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1162, allocations: 4 kB / 474 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.696e-05/0.1162, allocations: 0 / 474 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001904/0.1164, allocations: 145.7 kB / 474.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.158e-05/0.1165, allocations: 22.55 kB / 474.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.476e-05/0.1165, allocations: 4.859 kB / 474.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.949e-06/0.1165, allocations: 8 kB / 474.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.232e-05/0.1166, allocations: 56.27 kB / 474.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.252e-06/0.1166, allocations: 0 / 474.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001651/0.1168, allocations: 67.39 kB / 474.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.275e-05/0.1168, allocations: 81.11 kB / 474.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.757e-05/0.1169, allocations: 89.86 kB / 474.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.1169, allocations: 25.7 kB / 474.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.762e-05/0.117, allocations: 84.27 kB / 474.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.117, allocations: 4 kB / 474.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.28e-05/0.117, allocations: 9.719 kB / 474.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1172, allocations: 314.8 kB / 474.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.056e-05/0.1172, allocations: 4 kB / 474.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.993e-06/0.1172, allocations: 3.984 kB / 474.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.61e-05/0.1172, allocations: 64.2 kB / 475 MB, free: 10.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1172, allocations: 0 / 475 MB, free: 10.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.398e-05/0.1173, allocations: 63.47 kB / 475.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.373e-05/0.1174, allocations: 36.36 kB / 475.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.1174, allocations: 3.984 kB / 475.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.1174, allocations: 3.938 kB / 475.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.1174, allocations: 0 / 475.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.1174, allocations: 0 / 475.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.738e-05/0.1174, allocations: 0 / 475.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.273e-06/0.1175, allocations: 11.92 kB / 475.1 MB, free: 10.84 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.695e-05/0.1175, allocations: 131.5 kB / 475.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.083e-06/0.1176, allocations: 4.031 kB / 475.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.415e-05/0.1176, allocations: 15.02 kB / 475.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1176, allocations: 0 / 475.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1176, allocations: 3.938 kB / 475.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1176, allocations: 0 / 475.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001024/0.1177, allocations: 145.7 kB / 475.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1177, allocations: 0 / 475.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.1177, allocations: 0 / 475.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.1177, allocations: 4 kB / 475.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.1178, allocations: 7.938 kB / 475.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1178, allocations: 4 kB / 475.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1178, allocations: 4 kB / 475.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.574e-05/0.1179, allocations: 90.83 kB / 475.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.302e-05/0.1179, allocations: 77.11 kB / 475.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.1179, allocations: 3.938 kB / 475.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.328e-06/0.1179, allocations: 0 / 475.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.685e-05/0.118, allocations: 7.938 kB / 475.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/0.118, allocations: 8.016 kB / 475.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.48e-05/0.118, allocations: 75.28 kB / 475.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.118, allocations: 0 / 475.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002176/0.1182, allocations: 16 kB / 475.7 MB, free: 10.14 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.0004239/0.1187, allocations: 208.8 kB / 475.9 MB, free: 9.969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.324e-05/0.1188, allocations: 59.41 kB / 476 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1188, allocations: 0 / 476 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.945e-05/0.1188, allocations: 59.47 kB / 476 MB, free: 9.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001194/0.1189, allocations: 0 / 476 MB, free: 9.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001995/0.1191, allocations: 116.3 kB / 476.1 MB, free: 9.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.1194, allocations: 0.6692 MB / 476.8 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.311e-05/0.1194, allocations: 7.438 kB / 476.8 MB, free: 8.977 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1194, allocations: 0 / 476.8 MB, free: 8.977 MB / 350.1 MB Notification: Performance of Templates: time 0.002253/0.1217, allocations: 0.757 MB / 477.6 MB, free: 8.219 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/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