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.00189/0.00189, allocations: 105.4 kB / 18.4 MB, free: 4.57 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.002259/0.002259, allocations: 188 kB / 19.34 MB, free: 3.641 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.552/1.552, allocations: 222.9 MB / 243 MB, free: 15.1 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.2197/0.2197, allocations: 44.19 MB / 337.4 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 67.92 kB / 409.9 MB, free: 26.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1032, allocations: 60.82 MB / 470.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001895/0.1052, allocations: 481.9 kB / 471.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006166/0.1058, allocations: 257.7 kB / 471.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.93e-05/0.1058, allocations: 3.938 kB / 471.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.618e-06/0.1059, allocations: 0 / 471.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.887e-06/0.1059, allocations: 4 kB / 471.4 MB, free: 12.96 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.0003208/0.1062, allocations: 55.81 kB / 471.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.157e-05/0.1063, allocations: 3.938 kB / 471.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.502e-05/0.1063, allocations: 0 / 471.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.455e-05/0.1063, allocations: 4 kB / 471.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.86e-05/0.1064, allocations: 0 / 471.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.025e-06/0.1064, allocations: 3.938 kB / 471.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.1065, allocations: 71.94 kB / 471.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.633e-06/0.1065, allocations: 0 / 471.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.937e-05/0.1066, allocations: 3.984 kB / 471.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001265/0.1067, allocations: 51.89 kB / 471.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.1067, allocations: 3.984 kB / 471.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1067, allocations: 0 / 471.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.1067, allocations: 0 / 471.6 MB, free: 12.77 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.0003161/0.107, allocations: 357.3 kB / 472 MB, free: 12.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.1071, allocations: 8.031 kB / 472 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.642e-05/0.1071, allocations: 4.938 kB / 472 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.391e-05/0.1072, allocations: 164.4 kB / 472.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.322e-06/0.1072, allocations: 384 / 472.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-06/0.1072, allocations: 384 / 472.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.81e-05/0.1073, allocations: 30.27 kB / 472.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.1073, allocations: 4.172 kB / 472.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.1073, allocations: 3.938 kB / 472.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.116e-06/0.1073, allocations: 0 / 472.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.682e-05/0.1074, allocations: 7.922 kB / 472.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001145/0.1075, allocations: 153.7 kB / 472.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.105e-05/0.1075, allocations: 14.58 kB / 472.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.285e-05/0.1075, allocations: 4.859 kB / 472.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.292e-06/0.1076, allocations: 0 / 472.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/0.1076, allocations: 60.36 kB / 472.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.1076, allocations: 0 / 472.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001399/0.1077, allocations: 75.27 kB / 472.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.1078, allocations: 81.23 kB / 472.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.184e-05/0.1078, allocations: 89.86 kB / 472.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.1079, allocations: 25.7 kB / 472.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.762e-05/0.1079, allocations: 80.14 kB / 472.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.431e-05/0.1079, allocations: 3.938 kB / 472.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.484e-05/0.1079, allocations: 13.72 kB / 472.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.633e-05/0.108, allocations: 318.8 kB / 473.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.388e-06/0.1081, allocations: 4 kB / 473.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.311e-06/0.1081, allocations: 8 kB / 473.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.705e-05/0.1081, allocations: 56.27 kB / 473.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1081, allocations: 4 kB / 473.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.039e-05/0.1082, allocations: 59.34 kB / 473.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.1082, allocations: 37.69 kB / 473.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.936e-06/0.1082, allocations: 0 / 473.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.1083, allocations: 3.938 kB / 473.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.1083, allocations: 0 / 473.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.226e-06/0.1083, allocations: 3.938 kB / 473.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.413e-05/0.1083, allocations: 8.094 kB / 473.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.1083, allocations: 0 / 473.3 MB, free: 10.84 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.705e-05/0.1084, allocations: 135.5 kB / 473.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.323e-06/0.1084, allocations: 0 / 473.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.061e-05/0.1084, allocations: 11.02 kB / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.1084, allocations: 7.984 kB / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.1084, allocations: 0 / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.1084, allocations: 0 / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.57e-05/0.1085, allocations: 145.7 kB / 473.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.1085, allocations: 4 kB / 473.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1085, allocations: 0 / 473.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.1085, allocations: 0 / 473.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.214e-06/0.1085, allocations: 7.938 kB / 473.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.1086, allocations: 0 / 473.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.1086, allocations: 0 / 473.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.273e-05/0.1086, allocations: 94.77 kB / 473.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.701e-05/0.1087, allocations: 77.11 kB / 473.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.169e-05/0.1087, allocations: 11.95 kB / 473.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.296e-06/0.1087, allocations: 0 / 473.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.04e-05/0.1087, allocations: 4 kB / 473.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.107e-06/0.1087, allocations: 4 kB / 473.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.17e-05/0.1088, allocations: 75.28 kB / 473.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.302e-06/0.1088, allocations: 0 / 473.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002071/0.109, allocations: 23.94 kB / 473.9 MB, free: 10.14 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.0004519/0.1094, allocations: 278.2 kB / 474.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.068e-05/0.1095, allocations: 67.33 kB / 474.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1095, allocations: 3.938 kB / 474.2 MB, free: 9.855 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.818e-05/0.1096, allocations: 55.41 kB / 474.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001061/0.1097, allocations: 0 / 474.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000128/0.1098, allocations: 88.84 kB / 474.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000227/0.1101, allocations: 0.6768 MB / 475 MB, free: 8.973 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.137e-06/0.1101, allocations: 0 / 475 MB, free: 8.973 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.817e-06/0.1101, allocations: 7.438 kB / 475 MB, free: 8.965 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1101, allocations: 128 / 475 MB, free: 8.965 MB / 350.1 MB Notification: Performance of Templates: time 0.002701/0.1128, allocations: 0.7933 MB / 475.8 MB, free: 8.172 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 -s cvode -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