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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009729/0.000973, allocations: 93.08 kB / 18 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 179.1 kB / 18.9 MB, free: 4.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 223.3 MB / 243 MB, free: 14.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2192/0.2192, allocations: 44.25 MB / 338.3 MB, free: 2.473 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004231/0.0004232, allocations: 8 kB / 411 MB, free: 27.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1092, allocations: 61.92 MB / 472.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0005525/0.1098, allocations: 205.4 kB / 473.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006341/0.1104, allocations: 250.6 kB / 473.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.998e-06/0.1105, allocations: 0 / 473.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.467e-05/0.1105, allocations: 0 / 473.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.919e-06/0.1105, allocations: 0 / 473.4 MB, free: 12.87 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.Internal‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002883/0.1108, allocations: 43.89 kB / 473.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.782e-05/0.1108, allocations: 7.984 kB / 473.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.391e-05/0.1109, allocations: 4 kB / 473.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.619e-05/0.1109, allocations: 0 / 473.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.464e-05/0.1109, allocations: 0 / 473.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.936e-06/0.111, allocations: 0 / 473.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/0.1111, allocations: 59.95 kB / 473.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.205e-06/0.1111, allocations: 0 / 473.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.02e-05/0.1112, allocations: 29.69 kB / 473.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.1113, allocations: 39.89 kB / 473.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.1113, allocations: 4 kB / 473.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1113, allocations: 0 / 473.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.1113, allocations: 4 kB / 473.5 MB, free: 12.67 MB / 350.1 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.0003398/0.1117, allocations: 353.3 kB / 473.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/0.1118, allocations: 12.03 kB / 473.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.124e-05/0.1118, allocations: 0.9375 kB / 473.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/0.1119, allocations: 164.4 kB / 474.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.1119, allocations: 4.359 kB / 474.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.1119, allocations: 4.375 kB / 474.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.874e-05/0.112, allocations: 30.27 kB / 474.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.1121, allocations: 4.188 kB / 474.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.1121, allocations: 7.875 kB / 474.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.1121, allocations: 3.938 kB / 474.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.983e-05/0.1121, allocations: 4 kB / 474.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001301/0.1123, allocations: 141.7 kB / 474.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.08e-05/0.1123, allocations: 22.56 kB / 474.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.711e-05/0.1124, allocations: 8.953 kB / 474.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.884e-06/0.1124, allocations: 0 / 474.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.058e-05/0.1124, allocations: 60.27 kB / 474.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1124, allocations: 0 / 474.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001727/0.1126, allocations: 71.27 kB / 474.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.1127, allocations: 81.11 kB / 474.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.212e-05/0.1127, allocations: 89.86 kB / 474.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.1127, allocations: 25.7 kB / 474.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.868e-05/0.1128, allocations: 84.14 kB / 474.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/0.1128, allocations: 8.062 kB / 474.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.442e-05/0.1128, allocations: 9.719 kB / 474.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.113, allocations: 310.8 kB / 475 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.877e-06/0.113, allocations: 0 / 475 MB, free: 10.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.394e-06/0.113, allocations: 4 kB / 475 MB, free: 10.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.881e-05/0.1131, allocations: 64.2 kB / 475.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1131, allocations: 0 / 475.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.061e-05/0.1131, allocations: 63.39 kB / 475.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.323e-05/0.1132, allocations: 37.8 kB / 475.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1132, allocations: 0 / 475.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.1132, allocations: 3.938 kB / 475.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.1132, allocations: 0 / 475.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.1132, allocations: 0 / 475.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.438e-05/0.1132, allocations: 0 / 475.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.1133, allocations: 0 / 475.2 MB, free: 10.76 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.501e-05/0.1133, allocations: 139.5 kB / 475.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.025e-06/0.1134, allocations: 0 / 475.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.519e-05/0.1134, allocations: 15.02 kB / 475.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1134, allocations: 0 / 475.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1134, allocations: 4 kB / 475.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-06/0.1134, allocations: 0 / 475.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.463e-05/0.1135, allocations: 149.7 kB / 475.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1135, allocations: 0 / 475.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.92e-07/0.1135, allocations: 0 / 475.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1135, allocations: 0 / 475.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.1135, allocations: 7.938 kB / 475.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.1135, allocations: 0 / 475.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.1135, allocations: 3.938 kB / 475.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000102/0.1137, allocations: 94.77 kB / 475.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.132e-05/0.1137, allocations: 81.11 kB / 475.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.1137, allocations: 3.938 kB / 475.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.447e-06/0.1137, allocations: 0 / 475.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.31e-05/0.1138, allocations: 0 / 475.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.1138, allocations: 4 kB / 475.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.423e-05/0.1138, allocations: 75.28 kB / 475.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.574e-06/0.1138, allocations: 4.031 kB / 475.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002401/0.1141, allocations: 27.92 kB / 475.8 MB, free: 10.05 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005508/0.1146, allocations: 284.2 kB / 476.1 MB, free: 9.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.701e-05/0.1147, allocations: 59.34 kB / 476.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1147, allocations: 0 / 476.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.331e-05/0.1148, allocations: 59.41 kB / 476.2 MB, free: 9.699 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.1149, allocations: 0 / 476.2 MB, free: 9.699 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001939/0.1151, allocations: 112.5 kB / 476.3 MB, free: 9.555 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002348/0.1153, allocations: 0.6692 MB / 477 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.228e-05/0.1154, allocations: 7.438 kB / 477 MB, free: 8.852 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1154, allocations: 0 / 477 MB, free: 8.852 MB / 350.1 MB Notification: Performance of Templates: time 0.002439/0.1178, allocations: 0.9597 MB / 477.9 MB, free: 7.891 MB / 350.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches