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.001667/0.001667, allocations: 107.4 kB / 17.21 MB, free: 6.289 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.001989/0.001989, allocations: 194 kB / 18.12 MB, free: 5.383 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.464/1.464, allocations: 222.9 MB / 241.8 MB, free: 15.35 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.2223/0.2223, allocations: 44.17 MB / 336.1 MB, free: 2.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 60.06 kB / 407.7 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1149, allocations: 60.83 MB / 468.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001876/0.1168, allocations: 0.5292 MB / 469 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005563/0.1174, allocations: 209.9 kB / 469.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.306e-05/0.1174, allocations: 0 / 469.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.615e-05/0.1175, allocations: 0 / 469.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.568e-06/0.1175, allocations: 0 / 469.3 MB, free: 14.11 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.0002731/0.1178, allocations: 39.89 kB / 469.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.141e-05/0.1178, allocations: 12 kB / 469.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.567e-05/0.1179, allocations: 7.922 kB / 469.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.763e-05/0.1179, allocations: 0 / 469.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.376e-05/0.1179, allocations: 0 / 469.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.667e-06/0.1179, allocations: 4 kB / 469.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001313/0.1181, allocations: 43.95 kB / 469.4 MB, free: 14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.074e-05/0.1181, allocations: 0 / 469.4 MB, free: 14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.996e-05/0.1181, allocations: 3.938 kB / 469.4 MB, free: 14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.1182, allocations: 43.94 kB / 469.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.1183, allocations: 7.984 kB / 469.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1183, allocations: 0 / 469.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1183, allocations: 4 kB / 469.4 MB, free: 13.95 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.0003491/0.1186, allocations: 353.3 kB / 469.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.1187, allocations: 12.02 kB / 469.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.902e-05/0.1187, allocations: 0.9375 kB / 469.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.744e-05/0.1188, allocations: 160.4 kB / 469.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.1188, allocations: 4.359 kB / 469.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.305e-06/0.1188, allocations: 384 / 469.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.83e-05/0.1189, allocations: 34.27 kB / 470 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.1189, allocations: 192 / 470 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.119, allocations: 7.938 kB / 470 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.119, allocations: 0 / 470 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.933e-05/0.119, allocations: 7.938 kB / 470 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001257/0.1191, allocations: 145.7 kB / 470.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.383e-05/0.1192, allocations: 22.61 kB / 470.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.302e-05/0.1192, allocations: 4.859 kB / 470.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.701e-06/0.1192, allocations: 0 / 470.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.696e-05/0.1192, allocations: 64.2 kB / 470.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.1193, allocations: 0 / 470.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001763/0.1194, allocations: 71.33 kB / 470.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/0.1195, allocations: 77.11 kB / 470.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.564e-05/0.1195, allocations: 93.86 kB / 470.5 MB, free: 12.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.1196, allocations: 29.7 kB / 470.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.069e-05/0.1196, allocations: 80.14 kB / 470.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.1196, allocations: 0 / 470.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.657e-05/0.1197, allocations: 13.84 kB / 470.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1198, allocations: 314.8 kB / 470.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.281e-05/0.1198, allocations: 3.984 kB / 470.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.112e-06/0.1198, allocations: 0 / 470.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.568e-05/0.1199, allocations: 64.27 kB / 470.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.103e-06/0.1199, allocations: 0 / 470.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.248e-05/0.12, allocations: 63.34 kB / 471 MB, free: 12.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.12, allocations: 36.3 kB / 471 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1201, allocations: 3.984 kB / 471 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.1201, allocations: 3.938 kB / 471.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.575e-06/0.1201, allocations: 0 / 471.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.1201, allocations: 7.938 kB / 471.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.71e-05/0.1201, allocations: 0 / 471.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.1201, allocations: 0 / 471.1 MB, free: 12.03 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 0.0001169/0.1202, allocations: 131.5 kB / 471.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.862e-06/0.1203, allocations: 4 kB / 471.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.773e-05/0.1203, allocations: 19.02 kB / 471.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.1203, allocations: 0 / 471.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1203, allocations: 0 / 471.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.1203, allocations: 0 / 471.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001194/0.1204, allocations: 149.7 kB / 471.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.1204, allocations: 0 / 471.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.1204, allocations: 0 / 471.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.1204, allocations: 0 / 471.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.1205, allocations: 3.938 kB / 471.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.1205, allocations: 0 / 471.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1205, allocations: 0 / 471.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001052/0.1206, allocations: 98.77 kB / 471.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.486e-05/0.1206, allocations: 77.11 kB / 471.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.361e-05/0.1206, allocations: 3.938 kB / 471.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.283e-05/0.1207, allocations: 8 kB / 471.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.512e-05/0.1207, allocations: 0 / 471.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.1207, allocations: 3.984 kB / 471.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.047e-05/0.1207, allocations: 75.28 kB / 471.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1207, allocations: 7.969 kB / 471.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002257/0.121, allocations: 20 kB / 471.6 MB, free: 11.33 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.0005424/0.1215, allocations: 201.3 kB / 471.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001101/0.1216, allocations: 55.41 kB / 471.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.1217, allocations: 0 / 471.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.744e-05/0.1217, allocations: 59.34 kB / 472 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/0.1219, allocations: 13.92 kB / 472 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002106/0.1221, allocations: 86.78 kB / 472.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.1224, allocations: 0.6692 MB / 472.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.893e-06/0.1224, allocations: 4 kB / 472.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.189e-05/0.1225, allocations: 7.438 kB / 472.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1225, allocations: 0 / 472.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of Templates: time 0.003213/0.1257, allocations: 0.5671 MB / 473.3 MB, free: 9.625 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