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.001268/0.001268, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009321/0.0009324, allocations: 87.23 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1881/0.1881, allocations: 45.15 MB / 389.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.543e-05/3.573e-05, allocations: 8 kB / 460.4 MB, free: 70.01 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1088, allocations: 63.24 MB / 0.5113 GB, free: 6.797 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3685/0.4774, allocations: 86.83 MB / 0.5961 GB, free: 7.16 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.4776, allocations: 65.5 kB / 0.5962 GB, free: 7.129 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004064/0.4817, allocations: 1.657 MB / 0.5978 GB, free: 5.699 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.4817, allocations: 0 / 0.5978 GB, free: 5.699 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.4818, allocations: 0 / 0.5978 GB, free: 5.699 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.0003471/0.4821, allocations: 358.7 kB / 0.5982 GB, free: 5.301 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.875e-05/0.4822, allocations: 11.97 kB / 0.5982 GB, free: 5.289 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.867e-05/0.4822, allocations: 0 / 0.5982 GB, free: 5.289 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.4824, allocations: 170.5 kB / 0.5983 GB, free: 5.086 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.4824, allocations: 0 / 0.5983 GB, free: 5.086 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.291e-05/0.4824, allocations: 0 / 0.5983 GB, free: 5.086 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.4825, allocations: 37.64 kB / 0.5984 GB, free: 5.043 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.4825, allocations: 0 / 0.5984 GB, free: 5.043 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.4826, allocations: 0 / 0.5984 GB, free: 5.043 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.4826, allocations: 4 kB / 0.5984 GB, free: 5.039 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.625e-05/0.4826, allocations: 7.938 kB / 0.5984 GB, free: 5.031 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001626/0.4828, allocations: 149.6 kB / 0.5985 GB, free: 4.836 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.725e-05/0.4828, allocations: 21.8 kB / 0.5985 GB, free: 4.809 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.553e-05/0.4829, allocations: 4.859 kB / 0.5985 GB, free: 4.801 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.155e-06/0.4829, allocations: 4 kB / 0.5986 GB, free: 4.797 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.398e-05/0.4829, allocations: 56.27 kB / 0.5986 GB, free: 4.727 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.4829, allocations: 2.734 kB / 0.5986 GB, free: 4.727 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002003/0.4831, allocations: 67.39 kB / 0.5987 GB, free: 4.648 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.615e-05/0.4832, allocations: 84.47 kB / 0.5988 GB, free: 4.551 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.324e-05/0.4833, allocations: 85 kB / 0.5988 GB, free: 4.461 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.4833, allocations: 25.7 kB / 0.5989 GB, free: 4.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.589e-05/0.4834, allocations: 84.17 kB / 0.5989 GB, free: 4.344 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.222e-05/0.4834, allocations: 4 kB / 0.5989 GB, free: 4.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.993e-06/0.4834, allocations: 0 / 0.5989 GB, free: 4.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4836, allocations: 310.8 kB / 0.5992 GB, free: 4.027 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.021e-05/0.4836, allocations: 0 / 0.5992 GB, free: 4.027 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.478e-06/0.4836, allocations: 0 / 0.5992 GB, free: 4.027 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.684e-05/0.4836, allocations: 29.7 kB / 0.5993 GB, free: 3.992 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4836, allocations: 0 / 0.5993 GB, free: 3.992 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.312e-05/0.4837, allocations: 82.7 kB / 0.5993 GB, free: 3.902 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.444e-05/0.4838, allocations: 30.64 kB / 0.5994 GB, free: 3.867 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.4838, allocations: 0 / 0.5994 GB, free: 3.867 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.4838, allocations: 0 / 0.5994 GB, free: 3.867 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.283e-06/0.4838, allocations: 0 / 0.5994 GB, free: 3.867 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.4838, allocations: 0 / 0.5994 GB, free: 3.867 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.249e-05/0.4838, allocations: 4 kB / 0.5994 GB, free: 3.863 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.4839, allocations: 0 / 0.5994 GB, free: 3.863 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 9.716e-05/0.484, allocations: 128.1 kB / 0.5995 GB, free: 3.727 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.899e-06/0.484, allocations: 7.953 kB / 0.5995 GB, free: 3.719 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.946e-05/0.484, allocations: 15.09 kB / 0.5995 GB, free: 3.703 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.484, allocations: 0 / 0.5995 GB, free: 3.703 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.484, allocations: 3.938 kB / 0.5995 GB, free: 3.699 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.484, allocations: 0 / 0.5995 GB, free: 3.699 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000108/0.4841, allocations: 145.4 kB / 0.5997 GB, free: 3.512 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.4842, allocations: 4 kB / 0.5997 GB, free: 3.508 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.4842, allocations: 0 / 0.5997 GB, free: 3.508 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.4842, allocations: 3.953 kB / 0.5997 GB, free: 3.504 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.4842, allocations: 0 / 0.5997 GB, free: 3.504 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.594e-06/0.4842, allocations: 7.922 kB / 0.5997 GB, free: 3.496 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4842, allocations: 4 kB / 0.5997 GB, free: 3.492 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001029/0.4843, allocations: 90.09 kB / 0.5998 GB, free: 3.383 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.153e-05/0.4844, allocations: 77.11 kB / 0.5998 GB, free: 3.289 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.4844, allocations: 7.938 kB / 0.5999 GB, free: 3.281 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.032e-05/0.4844, allocations: 4 kB / 0.5999 GB, free: 3.277 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.796e-05/0.4844, allocations: 0 / 0.5999 GB, free: 3.277 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.4844, allocations: 0 / 0.5999 GB, free: 3.277 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.504e-05/0.4845, allocations: 79.31 kB / 0.5999 GB, free: 3.199 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4845, allocations: 0 / 0.5999 GB, free: 3.199 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002233/0.4847, allocations: 27.38 kB / 0.6 GB, free: 3.176 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.0005846/0.4853, allocations: 269.5 kB / 0.6002 GB, free: 2.961 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.642e-05/0.4854, allocations: 63.34 kB / 0.6003 GB, free: 2.887 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.4854, allocations: 0 / 0.6003 GB, free: 2.887 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.514e-05/0.4855, allocations: 62.77 kB / 0.6003 GB, free: 2.816 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.048e-05/0.4856, allocations: 0 / 0.6003 GB, free: 2.816 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001806/0.4857, allocations: 48.19 kB / 0.6004 GB, free: 2.75 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.486, allocations: 0.677 MB / 0.601 GB, free: 2.047 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 1.063e-05/0.4861, allocations: 0 / 0.601 GB, free: 2.047 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.006e-05/0.4861, allocations: 11.38 kB / 0.6011 GB, free: 2.035 MB / 394.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4861, allocations: 0 / 0.6011 GB, free: 2.035 MB / 394.7 MB Notification: Performance of Templates: time 0.003102/0.4892, allocations: 0.7724 MB / 0.6018 GB, free: 1.27 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