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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 169.1 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 221.5 MB / 230.7 MB, free: 7.531 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.0008623/0.0008623, allocations: 98.23 kB / 281.6 MB, free: 5.27 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.1923/0.1923, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.591e-05/1.594e-05, allocations: 4.203 kB / 444.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1375, allocations: 61.91 MB / 0.4947 GB, free: 1.27 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4346/0.5722, allocations: 85.1 MB / 0.5778 GB, free: 11.44 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.5725, allocations: 59.97 kB / 0.5778 GB, free: 11.38 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007534/0.58, allocations: 1.663 MB / 0.5794 GB, free: 9.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5801, allocations: 4 kB / 0.5794 GB, free: 9.727 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.5801, allocations: 0 / 0.5794 GB, free: 9.727 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.0003615/0.5805, allocations: 364.1 kB / 0.5798 GB, free: 9.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.5805, allocations: 11.98 kB / 0.5798 GB, free: 9.309 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.659e-05/0.5806, allocations: 0 / 0.5798 GB, free: 9.309 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.5807, allocations: 159.1 kB / 0.58 GB, free: 9.113 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.5808, allocations: 0 / 0.58 GB, free: 9.113 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.917e-05/0.5808, allocations: 7.984 kB / 0.58 GB, free: 9.105 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.112e-05/0.5809, allocations: 3.953 kB / 0.58 GB, free: 9.102 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.057e-05/0.5809, allocations: 29.69 kB / 0.58 GB, free: 9.066 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.581, allocations: 0 / 0.58 GB, free: 9.066 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.581, allocations: 8 kB / 0.58 GB, free: 9.059 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.581, allocations: 0 / 0.58 GB, free: 9.059 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001617/0.5812, allocations: 130.2 kB / 0.5801 GB, free: 8.895 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.941e-05/0.5813, allocations: 18.52 kB / 0.5801 GB, free: 8.867 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.39e-05/0.5813, allocations: 8.953 kB / 0.5802 GB, free: 8.855 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.798e-06/0.5813, allocations: 0 / 0.5802 GB, free: 8.855 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.573e-05/0.5814, allocations: 56.27 kB / 0.5802 GB, free: 8.785 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.753e-06/0.5814, allocations: 4 kB / 0.5802 GB, free: 8.781 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.000224/0.5817, allocations: 37.64 kB / 0.5803 GB, free: 8.738 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.305e-05/0.5817, allocations: 85.11 kB / 0.5803 GB, free: 8.637 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.802e-05/0.5818, allocations: 85 kB / 0.5804 GB, free: 8.547 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.5818, allocations: 25.7 kB / 0.5804 GB, free: 8.516 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.238e-05/0.5819, allocations: 80.14 kB / 0.5805 GB, free: 8.434 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.5819, allocations: 2.953 kB / 0.5805 GB, free: 8.434 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-06/0.582, allocations: 0 / 0.5805 GB, free: 8.434 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.5821, allocations: 314.9 kB / 0.5808 GB, free: 8.117 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.465e-05/0.5822, allocations: 4 kB / 0.5808 GB, free: 8.113 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.038e-05/0.5822, allocations: 3.938 kB / 0.5808 GB, free: 8.109 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.597e-05/0.5822, allocations: 3.984 kB / 0.5808 GB, free: 8.105 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.5823, allocations: 0 / 0.5808 GB, free: 8.105 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000123/0.5824, allocations: 33.7 kB / 0.5809 GB, free: 8.066 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.295e-05/0.5825, allocations: 30.64 kB / 0.5809 GB, free: 8.031 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.5825, allocations: 0.875 kB / 0.5809 GB, free: 8.031 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.5825, allocations: 0 / 0.5809 GB, free: 8.031 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.362e-06/0.5825, allocations: 4.094 kB / 0.5809 GB, free: 8.027 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.5825, allocations: 7.953 kB / 0.5809 GB, free: 8.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.677e-05/0.5826, allocations: 0 / 0.5809 GB, free: 8.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.5826, allocations: 4 kB / 0.5809 GB, free: 8.016 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 0.0001193/0.5827, allocations: 132.9 kB / 0.581 GB, free: 7.875 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.817e-05/0.5827, allocations: 4 kB / 0.581 GB, free: 7.871 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.888e-05/0.5828, allocations: 7.703 kB / 0.581 GB, free: 7.863 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.5828, allocations: 0 / 0.581 GB, free: 7.863 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.5828, allocations: 4 kB / 0.581 GB, free: 7.859 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.5828, allocations: 7.953 kB / 0.5811 GB, free: 7.852 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001062/0.5829, allocations: 122.2 kB / 0.5812 GB, free: 7.695 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.583, allocations: 0 / 0.5812 GB, free: 7.695 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.14e-06/0.583, allocations: 7.984 kB / 0.5812 GB, free: 7.688 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.583, allocations: 0 / 0.5812 GB, free: 7.688 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.583, allocations: 0 / 0.5812 GB, free: 7.688 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.574e-06/0.583, allocations: 3.938 kB / 0.5812 GB, free: 7.684 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.5831, allocations: 3.828 kB / 0.5812 GB, free: 7.684 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001595/0.5832, allocations: 69.09 kB / 0.5813 GB, free: 7.598 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.305e-05/0.5833, allocations: 81.09 kB / 0.5813 GB, free: 7.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.5833, allocations: 0 / 0.5813 GB, free: 7.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.599e-05/0.5834, allocations: 3.938 kB / 0.5813 GB, free: 7.496 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.08e-05/0.5834, allocations: 0 / 0.5813 GB, free: 7.496 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.5834, allocations: 0 / 0.5813 GB, free: 7.496 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.71e-05/0.5835, allocations: 79.28 kB / 0.5814 GB, free: 7.418 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5835, allocations: 0 / 0.5814 GB, free: 7.418 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004084/0.5839, allocations: 27.98 kB / 0.5814 GB, free: 7.391 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.0008914/0.5848, allocations: 276.3 kB / 0.5817 GB, free: 7.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001153/0.585, allocations: 59.39 kB / 0.5818 GB, free: 7.09 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.585, allocations: 0 / 0.5818 GB, free: 7.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.52e-05/0.5851, allocations: 55.41 kB / 0.5818 GB, free: 7.023 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.5852, allocations: 4.078 kB / 0.5818 GB, free: 7.02 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001966/0.5854, allocations: 50.19 kB / 0.5819 GB, free: 6.949 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.5858, allocations: 0.6768 MB / 0.5825 GB, free: 6.246 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 7.634e-06/0.5858, allocations: 0 / 0.5825 GB, free: 6.246 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.661e-05/0.5858, allocations: 7.438 kB / 0.5825 GB, free: 6.238 MB / 394.7 MB Notification: Performance of SimCode: time 6.31e-07/0.5859, allocations: 0 / 0.5825 GB, free: 6.238 MB / 394.7 MB Notification: Performance of Templates: time 0.004896/0.5908, allocations: 0.7587 MB / 0.5833 GB, free: 5.48 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