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.001077/0.001083, allocations: 114.4 kB / 17.78 MB, free: 5.277 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.001054/0.001054, allocations: 179.8 kB / 18.71 MB, free: 4.355 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.416/1.416, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2049/0.2049, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 59.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.376/0.3779, allocations: 60.82 MB / 0.5189 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001434/0.3794, allocations: 490.6 kB / 0.5194 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004819/0.3799, allocations: 204.3 kB / 0.5195 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.552e-05/0.3799, allocations: 0 / 0.5195 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.148e-05/0.38, allocations: 0 / 0.5195 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.45e-06/0.38, allocations: 1.094 kB / 0.5195 GB, free: 3.184 MB / 382.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.0002727/0.3803, allocations: 43.58 kB / 0.5196 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.115e-05/0.3803, allocations: 9.766 kB / 0.5196 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.593e-05/0.3804, allocations: 3.031 kB / 0.5196 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.388e-05/0.3804, allocations: 0 / 0.5196 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.317e-05/0.3804, allocations: 5.312 kB / 0.5196 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.25e-06/0.3804, allocations: 0 / 0.5196 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/0.3806, allocations: 59.28 kB / 0.5197 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.863e-06/0.3806, allocations: 0 / 0.5197 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.734e-05/0.3806, allocations: 1.156 kB / 0.5197 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001133/0.3807, allocations: 42.09 kB / 0.5197 GB, free: 3.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3807, allocations: 0 / 0.5197 GB, free: 3.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3807, allocations: 1.969 kB / 0.5197 GB, free: 3.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.355e-06/0.3807, allocations: 0 / 0.5197 GB, free: 3.113 MB / 382.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.0002363/0.381, allocations: 352.1 kB / 0.52 GB, free: 2.727 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.381, allocations: 13.47 kB / 0.5201 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.652e-05/0.381, allocations: 2.281 kB / 0.5201 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.742e-05/0.3811, allocations: 165.7 kB / 0.5202 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.3811, allocations: 5.453 kB / 0.5202 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.067e-05/0.3811, allocations: 384 / 0.5202 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.267e-05/0.3812, allocations: 34.31 kB / 0.5203 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.3812, allocations: 192 / 0.5203 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.3812, allocations: 6.078 kB / 0.5203 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.3812, allocations: 0 / 0.5203 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.613e-05/0.3813, allocations: 5.125 kB / 0.5203 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.346e-05/0.3814, allocations: 144.5 kB / 0.5204 GB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.497e-05/0.3814, allocations: 21.94 kB / 0.5204 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.149e-05/0.3814, allocations: 5.562 kB / 0.5204 GB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.414e-06/0.3814, allocations: 5.031 kB / 0.5204 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.3815, allocations: 62 kB / 0.5205 GB, free: 2.176 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3815, allocations: 0 / 0.5205 GB, free: 2.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001497/0.3816, allocations: 70.31 kB / 0.5206 GB, free: 2.105 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.521e-05/0.3816, allocations: 81.11 kB / 0.5206 GB, free: 2.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.03e-05/0.3817, allocations: 91.69 kB / 0.5207 GB, free: 1.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.112e-06/0.3817, allocations: 25.7 kB / 0.5207 GB, free: 1.879 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.387e-06/0.3817, allocations: 84.12 kB / 0.5208 GB, free: 1.793 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.5e-05/0.3817, allocations: 1.125 kB / 0.5208 GB, free: 1.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.236e-05/0.3817, allocations: 13 kB / 0.5208 GB, free: 1.777 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.052e-05/0.3818, allocations: 315.7 kB / 0.5211 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.516e-06/0.3818, allocations: 1.312 kB / 0.5211 GB, free: 1.461 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.522e-06/0.3818, allocations: 5.828 kB / 0.5211 GB, free: 1.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.549e-05/0.3819, allocations: 63.91 kB / 0.5212 GB, free: 1.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3819, allocations: 1.219 kB / 0.5212 GB, free: 1.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.877e-05/0.3819, allocations: 60.06 kB / 0.5213 GB, free: 1.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.3819, allocations: 31.52 kB / 0.5213 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.382, allocations: 0.9688 kB / 0.5213 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.382, allocations: 4.031 kB / 0.5213 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-06/0.382, allocations: 9.609 kB / 0.5213 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.382, allocations: 0 / 0.5213 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.475e-05/0.382, allocations: 5.031 kB / 0.5213 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.382, allocations: 0.6562 kB / 0.5213 GB, free: 1.273 MB / 382.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 4.57e-05/0.3821, allocations: 139.4 kB / 0.5215 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.478e-06/0.3821, allocations: 5.625 kB / 0.5215 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.997e-06/0.3821, allocations: 15.52 kB / 0.5215 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.3821, allocations: 0 / 0.5215 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.3821, allocations: 5.156 kB / 0.5215 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3821, allocations: 0.5625 kB / 0.5215 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.727e-05/0.3822, allocations: 144.9 kB / 0.5216 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3822, allocations: 0.75 kB / 0.5216 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3822, allocations: 1.438 kB / 0.5216 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.103e-06/0.3822, allocations: 0 / 0.5216 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.3822, allocations: 6.016 kB / 0.5216 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.3822, allocations: 3.984 kB / 0.5216 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3822, allocations: 0 / 0.5216 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.807e-05/0.3823, allocations: 93.14 kB / 0.5217 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.621e-05/0.3823, allocations: 78.19 kB / 0.5218 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.3823, allocations: 5.969 kB / 0.5218 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.185e-06/0.3823, allocations: 1.125 kB / 0.5218 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.439e-05/0.3824, allocations: 1.094 kB / 0.5218 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.3824, allocations: 1.25 kB / 0.5218 GB, free: 0.707 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.042e-05/0.3824, allocations: 75.28 kB / 0.5219 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.41e-07/0.3824, allocations: 0 / 0.5219 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002102/0.3826, allocations: 24.53 kB / 0.5219 GB, free: 0.6211 MB / 382.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.0003627/0.383, allocations: 202.5 kB / 0.5221 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.498e-05/0.3831, allocations: 57.59 kB / 0.5221 GB, free: 444 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3831, allocations: 0 / 0.5221 GB, free: 444 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.935e-05/0.3831, allocations: 60.25 kB / 0.5222 GB, free: 376 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001229/0.3832, allocations: 12.53 kB / 0.5222 GB, free: 368 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001585/0.3834, allocations: 80.22 kB / 0.5223 GB, free: 268 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.3836, allocations: 0.6803 MB / 0.523 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.941e-06/0.3836, allocations: 0 / 0.523 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.118e-05/0.3836, allocations: 8.562 kB / 0.523 GB, free: 15.55 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3837, allocations: 0 / 0.523 GB, free: 15.55 MB / 398.1 MB Notification: Performance of Templates: time 0.002808/0.3865, allocations: 0.5777 MB / 0.5235 GB, free: 15.44 MB / 398.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