Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") [: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.001469/0.001469, allocations: 179 kB / 8.517 MB, free: 1.852 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.47/1.47, allocations: 221.4 MB / 230.3 MB, free: 7.734 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.0008609/0.0008611, allocations: 88.72 kB / 281.2 MB, free: 5.469 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.1957/0.1957, allocations: 44.14 MB / 376.1 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.594e-06/7.875e-06, allocations: 0 / 444 MB, free: 15.64 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 61.92 MB / 0.4941 GB, free: 1.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3114/0.421, allocations: 85.02 MB / 0.5771 GB, free: 11.89 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001488/0.4211, allocations: 63.97 kB / 0.5772 GB, free: 11.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.004022/0.4252, allocations: 1.351 MB / 0.5785 GB, free: 10.48 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.4252, allocations: 4 kB / 0.5785 GB, free: 10.48 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.0003519/0.4256, allocations: 348.2 kB / 0.5788 GB, free: 10.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.4256, allocations: 15.97 kB / 0.5788 GB, free: 10.07 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.553e-05/0.4257, allocations: 3.906 kB / 0.5789 GB, free: 10.07 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.4258, allocations: 163 kB / 0.579 GB, free: 9.871 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.4258, allocations: 0 / 0.579 GB, free: 9.871 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.745e-06/0.4258, allocations: 0 / 0.579 GB, free: 9.871 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.466e-05/0.4259, allocations: 4 kB / 0.579 GB, free: 9.867 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.012e-05/0.4259, allocations: 25.7 kB / 0.579 GB, free: 9.836 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.4259, allocations: 3.984 kB / 0.579 GB, free: 9.832 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.426, allocations: 0 / 0.579 GB, free: 9.832 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.426, allocations: 7.891 kB / 0.579 GB, free: 9.824 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000124/0.4261, allocations: 134.2 kB / 0.5792 GB, free: 9.656 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.354e-05/0.4261, allocations: 14.58 kB / 0.5792 GB, free: 9.633 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.375e-05/0.4262, allocations: 4.859 kB / 0.5792 GB, free: 9.625 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.287e-06/0.4262, allocations: 3.938 kB / 0.5792 GB, free: 9.621 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/0.4262, allocations: 60.36 kB / 0.5793 GB, free: 9.547 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.4262, allocations: 0 / 0.5793 GB, free: 9.547 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001647/0.4264, allocations: 37.69 kB / 0.5793 GB, free: 9.504 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.4265, allocations: 77.11 kB / 0.5794 GB, free: 9.41 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.444e-05/0.4265, allocations: 89 kB / 0.5794 GB, free: 9.316 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.011e-05/0.4265, allocations: 25.7 kB / 0.5795 GB, free: 9.285 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.544e-05/0.4265, allocations: 80.14 kB / 0.5796 GB, free: 9.203 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.635e-05/0.4266, allocations: 3.906 kB / 0.5796 GB, free: 9.199 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-06/0.4266, allocations: 0 / 0.5796 GB, free: 9.199 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.769e-05/0.4267, allocations: 317.7 kB / 0.5799 GB, free: 8.883 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.732e-06/0.4267, allocations: 0 / 0.5799 GB, free: 8.883 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.709e-06/0.4267, allocations: 4.031 kB / 0.5799 GB, free: 8.879 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.86e-05/0.4267, allocations: 0 / 0.5799 GB, free: 8.879 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4268, allocations: 4 kB / 0.5799 GB, free: 8.875 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.244e-05/0.4268, allocations: 37.62 kB / 0.5799 GB, free: 8.832 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.4268, allocations: 4 kB / 0.5799 GB, free: 8.828 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.4268, allocations: 0.8438 kB / 0.5799 GB, free: 8.828 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.4269, allocations: 0 / 0.5799 GB, free: 8.828 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.4269, allocations: 0 / 0.5799 GB, free: 8.828 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.4269, allocations: 0 / 0.5799 GB, free: 8.828 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.336e-05/0.4269, allocations: 8.094 kB / 0.5799 GB, free: 8.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.4269, allocations: 0 / 0.5799 GB, free: 8.82 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.039e-05/0.427, allocations: 130.6 kB / 0.58 GB, free: 8.68 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.552e-06/0.427, allocations: 0 / 0.58 GB, free: 8.68 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.506e-05/0.427, allocations: 10.95 kB / 0.58 GB, free: 8.668 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.427, allocations: 7.938 kB / 0.5801 GB, free: 8.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.427, allocations: 0 / 0.5801 GB, free: 8.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.427, allocations: 0 / 0.5801 GB, free: 8.66 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.816e-05/0.4271, allocations: 134.1 kB / 0.5802 GB, free: 8.492 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.4271, allocations: 4 kB / 0.5802 GB, free: 8.488 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.4271, allocations: 4 kB / 0.5802 GB, free: 8.484 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.4271, allocations: 0 / 0.5802 GB, free: 8.484 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.4271, allocations: 4 kB / 0.5802 GB, free: 8.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.91e-07/0.4272, allocations: 0 / 0.5802 GB, free: 8.48 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.111e-05/0.4272, allocations: 0 / 0.5802 GB, free: 8.48 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.766e-05/0.4272, allocations: 65 kB / 0.5803 GB, free: 8.398 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.272e-05/0.4273, allocations: 85.02 kB / 0.5803 GB, free: 8.297 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.4273, allocations: 4.031 kB / 0.5803 GB, free: 8.293 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.857e-06/0.4273, allocations: 0 / 0.5803 GB, free: 8.293 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.389e-05/0.4273, allocations: 0 / 0.5803 GB, free: 8.293 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.4274, allocations: 4 kB / 0.5803 GB, free: 8.289 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.448e-05/0.4274, allocations: 75.28 kB / 0.5804 GB, free: 8.215 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002419/0.4276, allocations: 27.98 kB / 0.5804 GB, free: 8.188 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.0005046/0.4281, allocations: 267.9 kB / 0.5807 GB, free: 7.973 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.233e-05/0.4282, allocations: 33.64 kB / 0.5807 GB, free: 7.934 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4282, allocations: 4 kB / 0.5807 GB, free: 7.93 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.706e-05/0.4283, allocations: 25.7 kB / 0.5808 GB, free: 7.898 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.596e-05/0.4284, allocations: 6.5 kB / 0.5808 GB, free: 7.895 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001374/0.4285, allocations: 44.06 kB / 0.5808 GB, free: 7.828 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002713/0.4288, allocations: 0.6763 MB / 0.5815 GB, free: 7.125 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4288, allocations: 0 / 0.5815 GB, free: 7.125 MB / 394.7 MB Notification: Performance of Templates: time 0.002681/0.4315, allocations: 0.7692 MB / 0.5822 GB, free: 6.355 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches