Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 116 kB / 17.04 MB, free: 6.129 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.00117/0.00117, allocations: 196.6 kB / 17.98 MB, free: 5.227 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.352/1.352, allocations: 205.1 MB / 223.8 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2276/0.2276, allocations: 43.52 MB / 314.7 MB, free: 480 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 69.47 kB / 442.4 MB, free: 5.719 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1076, allocations: 57.78 MB / 0.4885 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001511/0.1091, allocations: 497.6 kB / 0.4889 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006084/0.1098, allocations: 247.8 kB / 0.4892 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.565e-05/0.1098, allocations: 4 kB / 0.4892 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.801e-05/0.1098, allocations: 0 / 0.4892 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.15e-06/0.1098, allocations: 0 / 0.4892 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003056/0.1101, allocations: 55.81 kB / 0.4892 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.012e-05/0.1102, allocations: 4 kB / 0.4892 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.73e-05/0.1103, allocations: 0 / 0.4892 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.765e-05/0.1103, allocations: 4 kB / 0.4892 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.221e-05/0.1103, allocations: 0 / 0.4892 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.729e-06/0.1103, allocations: 0 / 0.4892 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.1105, allocations: 71.92 kB / 0.4893 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.336e-06/0.1105, allocations: 0 / 0.4893 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.35e-05/0.1105, allocations: 3.938 kB / 0.4893 GB, free: 11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001293/0.1107, allocations: 55.94 kB / 0.4894 GB, free: 10.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1107, allocations: 0 / 0.4894 GB, free: 10.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1107, allocations: 0 / 0.4894 GB, free: 10.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1107, allocations: 4 kB / 0.4894 GB, free: 10.95 MB / 382.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.0003492/0.111, allocations: 357.2 kB / 0.4897 GB, free: 10.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.1111, allocations: 15.89 kB / 0.4897 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.983e-05/0.1111, allocations: 0.9375 kB / 0.4897 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.524e-05/0.1112, allocations: 168.3 kB / 0.4899 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.1112, allocations: 384 / 0.4899 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.1113, allocations: 384 / 0.4899 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.845e-05/0.1113, allocations: 34.25 kB / 0.4899 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.1114, allocations: 12.11 kB / 0.4899 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.1114, allocations: 3.938 kB / 0.4899 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1114, allocations: 0 / 0.4899 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.203e-05/0.1114, allocations: 7.984 kB / 0.4899 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001217/0.1115, allocations: 149.6 kB / 0.4901 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.418e-05/0.1116, allocations: 18.52 kB / 0.4901 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.289e-05/0.1116, allocations: 4.859 kB / 0.4901 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.203e-06/0.1116, allocations: 4.094 kB / 0.4901 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.1116, allocations: 64.25 kB / 0.4902 GB, free: 9.945 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1117, allocations: 0 / 0.4902 GB, free: 9.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001672/0.1118, allocations: 67.34 kB / 0.4902 GB, free: 9.867 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.1119, allocations: 77.11 kB / 0.4903 GB, free: 9.773 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.858e-05/0.1119, allocations: 93.8 kB / 0.4904 GB, free: 9.672 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.1119, allocations: 25.7 kB / 0.4904 GB, free: 9.641 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.382e-05/0.112, allocations: 80.14 kB / 0.4905 GB, free: 9.559 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.565e-05/0.112, allocations: 4.125 kB / 0.4905 GB, free: 9.555 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.433e-05/0.112, allocations: 21.7 kB / 0.4905 GB, free: 9.527 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.88e-05/0.1121, allocations: 310.8 kB / 0.4908 GB, free: 9.215 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.785e-06/0.1121, allocations: 0 / 0.4908 GB, free: 9.215 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.799e-06/0.1121, allocations: 4 kB / 0.4908 GB, free: 9.211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.537e-05/0.1122, allocations: 60.27 kB / 0.4909 GB, free: 9.137 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1122, allocations: 0 / 0.4909 GB, free: 9.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.785e-05/0.1123, allocations: 63.39 kB / 0.4909 GB, free: 9.062 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/0.1123, allocations: 37.8 kB / 0.491 GB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.1123, allocations: 4 kB / 0.491 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.1123, allocations: 3.938 kB / 0.491 GB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.1123, allocations: 3.938 kB / 0.491 GB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.948e-06/0.1123, allocations: 0 / 0.491 GB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.461e-05/0.1123, allocations: 0 / 0.491 GB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-06/0.1124, allocations: 4 kB / 0.491 GB, free: 9.004 MB / 382.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.281e-05/0.1124, allocations: 135.5 kB / 0.4911 GB, free: 8.855 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.833e-06/0.1125, allocations: 0 / 0.4911 GB, free: 8.855 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.516e-05/0.1125, allocations: 19.05 kB / 0.4911 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.1125, allocations: 0 / 0.4911 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1125, allocations: 0 / 0.4911 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1125, allocations: 3.938 kB / 0.4911 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.209e-05/0.1126, allocations: 145.6 kB / 0.4913 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.1126, allocations: 0 / 0.4913 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.1126, allocations: 0 / 0.4913 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1126, allocations: 4 kB / 0.4913 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.1126, allocations: 3.938 kB / 0.4913 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.1126, allocations: 3.984 kB / 0.4913 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1126, allocations: 0 / 0.4913 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.468e-05/0.1127, allocations: 90.84 kB / 0.4914 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-05/0.1128, allocations: 89.03 kB / 0.4915 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.219e-05/0.1128, allocations: 3.938 kB / 0.4915 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.355e-06/0.1128, allocations: 0 / 0.4915 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.387e-06/0.1128, allocations: 0 / 0.4915 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.1128, allocations: 4 kB / 0.4915 GB, free: 8.398 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.636e-05/0.1128, allocations: 79.31 kB / 0.4915 GB, free: 8.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1128, allocations: 0 / 0.4915 GB, free: 8.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002249/0.1131, allocations: 20 kB / 0.4916 GB, free: 8.301 MB / 382.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.0004591/0.1135, allocations: 256.3 kB / 0.4918 GB, free: 8.062 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.113e-05/0.1136, allocations: 67.39 kB / 0.4919 GB, free: 7.984 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1136, allocations: 0 / 0.4919 GB, free: 7.984 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.197e-05/0.1137, allocations: 55.41 kB / 0.4919 GB, free: 7.918 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001216/0.1138, allocations: 3.75 kB / 0.4919 GB, free: 7.918 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002335/0.114, allocations: 118.6 kB / 0.492 GB, free: 7.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.1143, allocations: 0.6729 MB / 0.4927 GB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.194e-05/0.1144, allocations: 7.438 kB / 0.4927 GB, free: 7.062 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1144, allocations: 0 / 0.4927 GB, free: 7.062 MB / 382.1 MB Notification: Performance of Templates: time 0.002777/0.1171, allocations: 0.96 MB / 0.4936 GB, free: 6.102 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches