Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001408/0.001408, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009877/0.0009876, allocations: 99.38 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2017/0.2017, allocations: 45.15 MB / 383.8 MB, free: 248 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.942e-05/1.945e-05, allocations: 4 kB / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1242, allocations: 63.25 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4486/0.5728, allocations: 86.15 MB / 0.5885 GB, free: 420 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003245/0.5732, allocations: 58.91 kB / 0.5885 GB, free: 392 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007145/0.5804, allocations: 1.664 MB / 0.5902 GB, free: 14.97 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5804, allocations: 0 / 0.5902 GB, free: 14.97 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.5804, allocations: 0 / 0.5902 GB, free: 14.97 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.0003911/0.5808, allocations: 357.3 kB / 0.5905 GB, free: 14.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.875e-05/0.5809, allocations: 12.03 kB / 0.5905 GB, free: 14.56 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.86e-05/0.581, allocations: 0.5625 kB / 0.5905 GB, free: 14.56 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001466/0.5812, allocations: 163 kB / 0.5907 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.5812, allocations: 4 kB / 0.5907 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.46e-05/0.5812, allocations: 0 / 0.5907 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.658e-05/0.5813, allocations: 4 kB / 0.5907 GB, free: 14.35 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.277e-05/0.5814, allocations: 33.19 kB / 0.5907 GB, free: 14.32 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.5814, allocations: 0 / 0.5907 GB, free: 14.32 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.5814, allocations: 0 / 0.5907 GB, free: 14.32 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.5815, allocations: 3.938 kB / 0.5907 GB, free: 14.31 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002003/0.5817, allocations: 130.2 kB / 0.5908 GB, free: 14.15 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.045e-05/0.5818, allocations: 22.52 kB / 0.5909 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.343e-05/0.5818, allocations: 4.859 kB / 0.5909 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.5818, allocations: 0 / 0.5909 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.762e-05/0.5819, allocations: 63.98 kB / 0.5909 GB, free: 14.04 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 2.535e-06/0.5819, allocations: 2.734 kB / 0.5909 GB, free: 14.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002518/0.5822, allocations: 33.69 kB / 0.591 GB, free: 14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/0.5823, allocations: 77.11 kB / 0.591 GB, free: 13.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.216e-05/0.5824, allocations: 89.03 kB / 0.5911 GB, free: 13.81 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.26e-05/0.5824, allocations: 29.7 kB / 0.5911 GB, free: 13.77 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.317e-05/0.5825, allocations: 80.14 kB / 0.5912 GB, free: 13.69 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.715e-05/0.5825, allocations: 0 / 0.5912 GB, free: 13.69 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.707e-06/0.5825, allocations: 0 / 0.5912 GB, free: 13.69 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.5827, allocations: 310.8 kB / 0.5915 GB, free: 13.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.452e-05/0.5827, allocations: 0 / 0.5915 GB, free: 13.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.297e-06/0.5828, allocations: 7.5 kB / 0.5915 GB, free: 13.38 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.103e-05/0.5828, allocations: 4.062 kB / 0.5915 GB, free: 13.37 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.5829, allocations: 4 kB / 0.5915 GB, free: 13.37 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000123/0.583, allocations: 37.64 kB / 0.5916 GB, free: 13.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.54e-05/0.5831, allocations: 33.7 kB / 0.5916 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.5831, allocations: 0 / 0.5916 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.5831, allocations: 0 / 0.5916 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.603e-06/0.5831, allocations: 0 / 0.5916 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.5831, allocations: 0 / 0.5916 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.665e-05/0.5832, allocations: 0 / 0.5916 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.5832, allocations: 4 kB / 0.5916 GB, free: 13.28 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.0001284/0.5833, allocations: 130.7 kB / 0.5917 GB, free: 13.14 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.164e-05/0.5833, allocations: 7.938 kB / 0.5917 GB, free: 13.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.499e-05/0.5834, allocations: 15.69 kB / 0.5918 GB, free: 13.12 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.5834, allocations: 4 kB / 0.5918 GB, free: 13.12 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.5834, allocations: 3.938 kB / 0.5918 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.5834, allocations: 0 / 0.5918 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001222/0.5836, allocations: 122.2 kB / 0.5919 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.5836, allocations: 0 / 0.5919 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.462e-06/0.5836, allocations: 0 / 0.5919 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.5836, allocations: 0 / 0.5919 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.832e-05/0.5836, allocations: 11.62 kB / 0.5919 GB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.5837, allocations: 7.891 kB / 0.5919 GB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.5837, allocations: 3.984 kB / 0.5919 GB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001551/0.5838, allocations: 53.14 kB / 0.592 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.882e-05/0.5839, allocations: 80.73 kB / 0.592 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.739e-05/0.584, allocations: 7.938 kB / 0.592 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.408e-05/0.584, allocations: 0 / 0.592 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.524e-05/0.584, allocations: 11.97 kB / 0.592 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.584, allocations: 0 / 0.592 GB, free: 12.75 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.813e-05/0.5841, allocations: 75.28 kB / 0.5921 GB, free: 12.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5841, allocations: 0 / 0.5921 GB, free: 12.68 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003763/0.5845, allocations: 23.98 kB / 0.5921 GB, free: 12.66 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.0008756/0.5854, allocations: 276.5 kB / 0.5924 GB, free: 12.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001163/0.5855, allocations: 55.41 kB / 0.5925 GB, free: 12.35 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.5855, allocations: 0 / 0.5925 GB, free: 12.35 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.128e-05/0.5856, allocations: 51.41 kB / 0.5925 GB, free: 12.29 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.5857, allocations: 11.92 kB / 0.5925 GB, free: 12.27 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001916/0.586, allocations: 45.81 kB / 0.5926 GB, free: 12.21 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.5863, allocations: 0.669 MB / 0.5932 GB, free: 11.52 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 1.353e-05/0.5864, allocations: 7.984 kB / 0.5932 GB, free: 11.51 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.457e-05/0.5864, allocations: 11.56 kB / 0.5932 GB, free: 11.5 MB / 394.7 MB Notification: Performance of SimCode: time 2.605e-06/0.5864, allocations: 0 / 0.5932 GB, free: 11.5 MB / 394.7 MB Notification: Performance of Templates: time 0.005015/0.5914, allocations: 0.7496 MB / 0.594 GB, free: 10.76 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches