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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 178.5 kB / 8.519 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 221.4 MB / 230.3 MB, free: 7.656 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009399/0.0009399, allocations: 86.44 kB / 281.2 MB, free: 5.449 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.1984/0.1984, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.773e-06/6.792e-06, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1146, allocations: 61.92 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3662/0.4808, allocations: 84.87 MB / 0.577 GB, free: 12.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.4811, allocations: 59.97 kB / 0.577 GB, free: 11.96 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.003694/0.4848, allocations: 1.112 MB / 0.5781 GB, free: 10.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.4848, allocations: 1.188 kB / 0.5781 GB, free: 10.86 MB / 394.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.0002882/0.4851, allocations: 352.1 kB / 0.5784 GB, free: 10.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.4851, allocations: 12.81 kB / 0.5785 GB, free: 10.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.414e-05/0.4852, allocations: 3.906 kB / 0.5785 GB, free: 10.45 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.726e-05/0.4853, allocations: 161.5 kB / 0.5786 GB, free: 10.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.4853, allocations: 4 kB / 0.5786 GB, free: 10.25 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/0.4853, allocations: 3.984 kB / 0.5786 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.135e-05/0.4854, allocations: 4 kB / 0.5786 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.153e-05/0.4854, allocations: 29.69 kB / 0.5787 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.4855, allocations: 0 / 0.5787 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.4855, allocations: 0 / 0.5787 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.4855, allocations: 7.906 kB / 0.5787 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000112/0.4856, allocations: 122.2 kB / 0.5788 GB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.901e-05/0.4856, allocations: 26.52 kB / 0.5788 GB, free: 10 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.465e-05/0.4857, allocations: 4.859 kB / 0.5788 GB, free: 9.996 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.486e-06/0.4857, allocations: 4.094 kB / 0.5788 GB, free: 9.992 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.018e-05/0.4857, allocations: 60.25 kB / 0.5789 GB, free: 9.918 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.4857, allocations: 0 / 0.5789 GB, free: 9.918 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001607/0.4859, allocations: 29.7 kB / 0.5789 GB, free: 9.883 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.486, allocations: 77.11 kB / 0.579 GB, free: 9.789 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.786e-05/0.486, allocations: 89.03 kB / 0.5791 GB, free: 9.695 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.486, allocations: 25.7 kB / 0.5791 GB, free: 9.664 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.822e-05/0.4861, allocations: 84.14 kB / 0.5792 GB, free: 9.578 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.4861, allocations: 7.906 kB / 0.5792 GB, free: 9.57 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-06/0.4861, allocations: 0 / 0.5792 GB, free: 9.57 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.4862, allocations: 317.8 kB / 0.5795 GB, free: 9.254 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.252e-06/0.4863, allocations: 0 / 0.5795 GB, free: 9.254 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.731e-06/0.4863, allocations: 4.781 kB / 0.5795 GB, free: 9.25 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.583e-05/0.4863, allocations: 8.062 kB / 0.5795 GB, free: 9.242 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.4863, allocations: 0 / 0.5795 GB, free: 9.242 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.656e-05/0.4864, allocations: 33.69 kB / 0.5795 GB, free: 9.203 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.4864, allocations: 8 kB / 0.5795 GB, free: 9.195 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.4864, allocations: 0 / 0.5795 GB, free: 9.195 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.4864, allocations: 0 / 0.5795 GB, free: 9.195 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.4864, allocations: 0 / 0.5795 GB, free: 9.195 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.306e-06/0.4864, allocations: 0 / 0.5795 GB, free: 9.195 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.08e-05/0.4865, allocations: 3.938 kB / 0.5795 GB, free: 9.191 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.4865, allocations: 0 / 0.5795 GB, free: 9.191 MB / 394.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 () * 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 8.474e-05/0.4866, allocations: 138.6 kB / 0.5797 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.993e-06/0.4866, allocations: 0 / 0.5797 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.872e-05/0.4866, allocations: 6.953 kB / 0.5797 GB, free: 9.035 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.4866, allocations: 3.984 kB / 0.5797 GB, free: 9.031 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.4866, allocations: 0 / 0.5797 GB, free: 9.031 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/0.4866, allocations: 4 kB / 0.5797 GB, free: 9.027 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.013e-05/0.4867, allocations: 134.2 kB / 0.5798 GB, free: 8.859 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.4867, allocations: 0 / 0.5798 GB, free: 8.859 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.4867, allocations: 0 / 0.5798 GB, free: 8.859 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.4867, allocations: 0 / 0.5798 GB, free: 8.859 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.4868, allocations: 4 kB / 0.5798 GB, free: 8.855 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4868, allocations: 0 / 0.5798 GB, free: 8.855 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4868, allocations: 7.938 kB / 0.5798 GB, free: 8.848 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.929e-05/0.4869, allocations: 57.12 kB / 0.5799 GB, free: 8.773 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.467e-05/0.4869, allocations: 84.84 kB / 0.5799 GB, free: 8.676 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.697e-05/0.4869, allocations: 3.984 kB / 0.58 GB, free: 8.672 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.346e-06/0.487, allocations: 0 / 0.58 GB, free: 8.672 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.326e-05/0.487, allocations: 4.031 kB / 0.58 GB, free: 8.668 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-06/0.487, allocations: 4 kB / 0.58 GB, free: 8.664 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.217e-05/0.487, allocations: 79.28 kB / 0.58 GB, free: 8.586 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002236/0.4872, allocations: 23.98 kB / 0.5801 GB, free: 8.562 MB / 394.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) * 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.0004074/0.4877, allocations: 188.2 kB / 0.5802 GB, free: 8.402 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.618e-05/0.4877, allocations: 33.64 kB / 0.5803 GB, free: 8.363 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.4878, allocations: 4.062 kB / 0.5803 GB, free: 8.359 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.911e-05/0.4878, allocations: 29.7 kB / 0.5803 GB, free: 8.324 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.061e-05/0.4879, allocations: 2.344 kB / 0.5803 GB, free: 8.324 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001571/0.488, allocations: 52 kB / 0.5804 GB, free: 8.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002929/0.4883, allocations: 0.6802 MB / 0.581 GB, free: 7.543 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4883, allocations: 0 / 0.581 GB, free: 7.543 MB / 394.7 MB Notification: Performance of Templates: time 0.003025/0.4914, allocations: 0.5791 MB / 0.5816 GB, free: 6.969 MB / 394.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