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.001322/0.001322, allocations: 183 kB / 18.09 MB, free: 3.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 223.3 MB / 242.1 MB, free: 9.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008958/0.0008957, allocations: 89.58 kB / 293.3 MB, free: 10.58 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.3228/0.3228, allocations: 44.15 MB / 388.5 MB, free: 38.47 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004645/0.0004648, allocations: 8 kB / 461.1 MB, free: 1.352 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3144, allocations: 61.88 MB / 0.5107 GB, free: 37.85 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1039/0.4183, allocations: 85.84 MB / 0.5945 GB, free: 9.246 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001985/0.4186, allocations: 67.95 kB / 0.5946 GB, free: 9.184 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003909/0.4225, allocations: 1.624 MB / 0.5962 GB, free: 7.559 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4225, allocations: 0 / 0.5962 GB, free: 7.559 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.4226, allocations: 0 / 0.5962 GB, free: 7.559 MB / 410.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.0002648/0.4228, allocations: 361.3 kB / 0.5965 GB, free: 7.148 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.4229, allocations: 8.031 kB / 0.5965 GB, free: 7.141 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.487e-05/0.4229, allocations: 0.9375 kB / 0.5965 GB, free: 7.141 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.782e-05/0.423, allocations: 160.4 kB / 0.5967 GB, free: 6.945 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.423, allocations: 4.375 kB / 0.5967 GB, free: 6.941 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.423, allocations: 384 / 0.5967 GB, free: 6.941 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.983e-05/0.4231, allocations: 30.27 kB / 0.5967 GB, free: 6.906 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.4231, allocations: 192 / 0.5967 GB, free: 6.906 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.4231, allocations: 7.922 kB / 0.5967 GB, free: 6.898 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.4231, allocations: 0 / 0.5967 GB, free: 6.898 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.844e-05/0.4232, allocations: 11.94 kB / 0.5967 GB, free: 6.887 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001112/0.4233, allocations: 145.7 kB / 0.5969 GB, free: 6.695 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.702e-05/0.4233, allocations: 18.58 kB / 0.5969 GB, free: 6.668 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.254e-05/0.4234, allocations: 8.953 kB / 0.5969 GB, free: 6.656 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.703e-06/0.4234, allocations: 0 / 0.5969 GB, free: 6.656 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.4234, allocations: 56.27 kB / 0.597 GB, free: 6.586 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 3.036e-06/0.4234, allocations: 0 / 0.597 GB, free: 6.586 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001541/0.4236, allocations: 79.2 kB / 0.597 GB, free: 6.496 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.4236, allocations: 77.11 kB / 0.5971 GB, free: 6.402 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.439e-05/0.4237, allocations: 97.89 kB / 0.5972 GB, free: 6.297 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.4237, allocations: 29.7 kB / 0.5972 GB, free: 6.262 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.945e-05/0.4237, allocations: 84.08 kB / 0.5973 GB, free: 6.176 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.4237, allocations: 3.984 kB / 0.5973 GB, free: 6.172 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.994e-06/0.4238, allocations: 0 / 0.5973 GB, free: 6.172 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.917e-05/0.4238, allocations: 314.8 kB / 0.5976 GB, free: 5.855 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.943e-06/0.4239, allocations: 0 / 0.5976 GB, free: 5.855 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.322e-06/0.4239, allocations: 4 kB / 0.5976 GB, free: 5.852 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.191e-05/0.4239, allocations: 64.31 kB / 0.5977 GB, free: 5.773 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4239, allocations: 0 / 0.5977 GB, free: 5.773 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.109e-05/0.424, allocations: 63.34 kB / 0.5977 GB, free: 5.699 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.424, allocations: 33.7 kB / 0.5978 GB, free: 5.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.424, allocations: 0 / 0.5978 GB, free: 5.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.4241, allocations: 3.938 kB / 0.5978 GB, free: 5.656 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.785e-06/0.4241, allocations: 3.984 kB / 0.5978 GB, free: 5.652 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.4241, allocations: 0 / 0.5978 GB, free: 5.652 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.122e-05/0.4241, allocations: 0 / 0.5978 GB, free: 5.652 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-06/0.4241, allocations: 0 / 0.5978 GB, free: 5.652 MB / 410.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 () * Number of clocked 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 7.434e-05/0.4242, allocations: 143.6 kB / 0.5979 GB, free: 5.496 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.354e-06/0.4242, allocations: 0 / 0.5979 GB, free: 5.496 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.387e-05/0.4242, allocations: 10.66 kB / 0.5979 GB, free: 5.488 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.4242, allocations: 0 / 0.5979 GB, free: 5.488 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.4242, allocations: 0 / 0.5979 GB, free: 5.488 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-06/0.4242, allocations: 4 kB / 0.5979 GB, free: 5.484 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.125e-05/0.4243, allocations: 149.7 kB / 0.5981 GB, free: 5.289 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.4243, allocations: 0 / 0.5981 GB, free: 5.289 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.4243, allocations: 0 / 0.5981 GB, free: 5.289 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.4243, allocations: 4 kB / 0.5981 GB, free: 5.285 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.4243, allocations: 3.938 kB / 0.5981 GB, free: 5.281 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.4244, allocations: 4 kB / 0.5981 GB, free: 5.277 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.4244, allocations: 0 / 0.5981 GB, free: 5.277 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.13e-05/0.4245, allocations: 90.77 kB / 0.5982 GB, free: 5.164 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.695e-05/0.4245, allocations: 81.11 kB / 0.5983 GB, free: 5.066 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.4245, allocations: 3.938 kB / 0.5983 GB, free: 5.062 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.025e-06/0.4245, allocations: 3.938 kB / 0.5983 GB, free: 5.059 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.788e-06/0.4245, allocations: 4.031 kB / 0.5983 GB, free: 5.055 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.4245, allocations: 0 / 0.5983 GB, free: 5.055 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.715e-05/0.4246, allocations: 79.28 kB / 0.5983 GB, free: 4.977 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4246, allocations: 4 kB / 0.5983 GB, free: 4.973 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002184/0.4248, allocations: 27.98 kB / 0.5984 GB, free: 4.945 MB / 410.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) * Number of clocked states: 0 () * 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.0004628/0.4253, allocations: 278.6 kB / 0.5986 GB, free: 4.738 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.421e-05/0.4254, allocations: 63.34 kB / 0.5987 GB, free: 4.664 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4254, allocations: 0 / 0.5987 GB, free: 4.664 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.044e-05/0.4254, allocations: 63.45 kB / 0.5988 GB, free: 4.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001149/0.4255, allocations: 4 kB / 0.5988 GB, free: 4.586 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001529/0.4257, allocations: 75.66 kB / 0.5988 GB, free: 4.484 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002052/0.4259, allocations: 0.6731 MB / 0.5995 GB, free: 3.785 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.779e-06/0.4259, allocations: 0 / 0.5995 GB, free: 3.785 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.006e-05/0.4259, allocations: 7.438 kB / 0.5995 GB, free: 3.777 MB / 410.7 MB Notification: Performance of SimCode: time 2.545e-06/0.4259, allocations: 0 / 0.5995 GB, free: 3.777 MB / 410.7 MB Notification: Performance of Templates: time 0.002722/0.4287, allocations: 0.7731 MB / 0.6003 GB, free: 3.004 MB / 410.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/jenkins1/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