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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 183.8 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008976/0.0008976, allocations: 100.9 kB / 292.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2836/0.2836, allocations: 44.21 MB / 387.5 MB, free: 38.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002672/0.0002673, allocations: 8 kB / 459.9 MB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3131, allocations: 61.89 MB / 0.5095 GB, free: 38.2 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1222/0.4353, allocations: 85.68 MB / 0.5932 GB, free: 9.5 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.4356, allocations: 71.95 kB / 0.5933 GB, free: 9.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003413/0.439, allocations: 1.437 MB / 0.5947 GB, free: 7.992 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.4391, allocations: 0 / 0.5947 GB, free: 7.992 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.4391, allocations: 0 / 0.5947 GB, free: 7.992 MB / 410.7 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.0002255/0.4393, allocations: 345.1 kB / 0.595 GB, free: 7.602 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.4393, allocations: 8.031 kB / 0.595 GB, free: 7.594 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.37e-05/0.4394, allocations: 11.98 kB / 0.595 GB, free: 7.582 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.4395, allocations: 159.1 kB / 0.5952 GB, free: 7.387 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.4395, allocations: 0 / 0.5952 GB, free: 7.387 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.504e-06/0.4395, allocations: 0 / 0.5952 GB, free: 7.387 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.973e-05/0.4396, allocations: 33.66 kB / 0.5952 GB, free: 7.348 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.34e-06/0.4396, allocations: 0 / 0.5952 GB, free: 7.348 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-06/0.4396, allocations: 0 / 0.5952 GB, free: 7.348 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-06/0.4396, allocations: 0 / 0.5952 GB, free: 7.348 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.578e-05/0.4397, allocations: 3.938 kB / 0.5952 GB, free: 7.344 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001168/0.4398, allocations: 157.7 kB / 0.5954 GB, free: 7.141 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.488e-05/0.4398, allocations: 14.58 kB / 0.5954 GB, free: 7.117 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.298e-06/0.4398, allocations: 0 / 0.5954 GB, free: 7.117 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.4399, allocations: 56.36 kB / 0.5954 GB, free: 7.047 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 2.174e-06/0.4399, allocations: 4 kB / 0.5954 GB, free: 7.043 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001604/0.4401, allocations: 75.22 kB / 0.5955 GB, free: 6.957 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.4401, allocations: 85.23 kB / 0.5956 GB, free: 6.855 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.417e-05/0.4402, allocations: 88.91 kB / 0.5957 GB, free: 6.762 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.231e-05/0.4402, allocations: 29.64 kB / 0.5957 GB, free: 6.727 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.41e-05/0.4402, allocations: 80.14 kB / 0.5958 GB, free: 6.645 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.084e-05/0.4402, allocations: 3.984 kB / 0.5958 GB, free: 6.641 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.394e-06/0.4402, allocations: 0 / 0.5958 GB, free: 6.641 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.4404, allocations: 310.8 kB / 0.5961 GB, free: 6.328 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.031e-05/0.4404, allocations: 4 kB / 0.5961 GB, free: 6.324 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.518e-06/0.4404, allocations: 0 / 0.5961 GB, free: 6.324 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.412e-05/0.4404, allocations: 29.77 kB / 0.5961 GB, free: 6.289 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4404, allocations: 0 / 0.5961 GB, free: 6.289 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.858e-05/0.4405, allocations: 67.39 kB / 0.5962 GB, free: 6.211 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.91e-05/0.4405, allocations: 30.95 kB / 0.5962 GB, free: 6.176 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.4405, allocations: 4 kB / 0.5962 GB, free: 6.172 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.4406, allocations: 3.938 kB / 0.5962 GB, free: 6.168 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.264e-06/0.4406, allocations: 3.953 kB / 0.5962 GB, free: 6.164 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.4406, allocations: 0 / 0.5962 GB, free: 6.164 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.144e-05/0.4406, allocations: 0 / 0.5962 GB, free: 6.164 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.4406, allocations: 32 / 0.5962 GB, free: 6.164 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.568e-05/0.4407, allocations: 144.1 kB / 0.5964 GB, free: 6.008 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-06/0.4407, allocations: 4 kB / 0.5964 GB, free: 6.004 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.237e-05/0.4407, allocations: 6.719 kB / 0.5964 GB, free: 6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.4407, allocations: 0 / 0.5964 GB, free: 6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4407, allocations: 3.953 kB / 0.5964 GB, free: 5.996 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.4407, allocations: 0 / 0.5964 GB, free: 5.996 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.842e-05/0.4408, allocations: 149.7 kB / 0.5965 GB, free: 5.801 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.4408, allocations: 3.984 kB / 0.5965 GB, free: 5.797 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.4408, allocations: 0 / 0.5965 GB, free: 5.797 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.4408, allocations: 4 kB / 0.5965 GB, free: 5.793 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-06/0.4409, allocations: 0 / 0.5965 GB, free: 5.793 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.4409, allocations: 0 / 0.5965 GB, free: 5.793 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4409, allocations: 4 kB / 0.5965 GB, free: 5.789 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.334e-05/0.441, allocations: 94.72 kB / 0.5966 GB, free: 5.672 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.61e-05/0.441, allocations: 77.11 kB / 0.5967 GB, free: 5.578 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.441, allocations: 4 kB / 0.5967 GB, free: 5.574 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.246e-06/0.441, allocations: 7.969 kB / 0.5967 GB, free: 5.566 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.137e-06/0.441, allocations: 0 / 0.5967 GB, free: 5.566 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-06/0.441, allocations: 0 / 0.5967 GB, free: 5.566 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.987e-05/0.4411, allocations: 75.28 kB / 0.5968 GB, free: 5.492 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4411, allocations: 0 / 0.5968 GB, free: 5.492 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002122/0.4413, allocations: 27.95 kB / 0.5968 GB, free: 5.465 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003461/0.4416, allocations: 207.4 kB / 0.597 GB, free: 5.293 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.486e-05/0.4417, allocations: 67.39 kB / 0.5971 GB, free: 5.215 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.4417, allocations: 0 / 0.5971 GB, free: 5.215 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.472e-05/0.4418, allocations: 55.41 kB / 0.5971 GB, free: 5.148 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.841e-05/0.4418, allocations: 0.9375 kB / 0.5971 GB, free: 5.148 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001386/0.442, allocations: 80.81 kB / 0.5972 GB, free: 5.043 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001873/0.4422, allocations: 0.677 MB / 0.5979 GB, free: 4.34 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.438e-06/0.4422, allocations: 0 / 0.5979 GB, free: 4.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.358e-06/0.4422, allocations: 7.438 kB / 0.5979 GB, free: 4.332 MB / 410.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4422, allocations: 128 / 0.5979 GB, free: 4.332 MB / 410.7 MB Notification: Performance of Templates: time 0.002296/0.4445, allocations: 0.5595 MB / 0.5984 GB, free: 3.777 MB / 410.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches