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.001158/0.001158, allocations: 104.3 kB / 17.2 MB, free: 6.27 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.001118/0.001118, allocations: 194 kB / 18.12 MB, free: 5.363 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.398/1.398, allocations: 222.9 MB / 241.8 MB, free: 15.58 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.2212/0.2212, allocations: 44.16 MB / 336.1 MB, free: 3.027 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 68.48 kB / 407.7 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1112, allocations: 60.82 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.002018/0.1132, allocations: 0.5331 MB / 469 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006328/0.1139, allocations: 257 kB / 469.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.013e-05/0.1139, allocations: 3.938 kB / 469.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.27e-05/0.114, allocations: 0 / 469.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.574e-06/0.114, allocations: 0 / 469.3 MB, free: 14.07 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.0002768/0.1143, allocations: 43.89 kB / 469.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.184e-05/0.1143, allocations: 3.938 kB / 469.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.478e-05/0.1143, allocations: 4 kB / 469.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.617e-05/0.1144, allocations: 0 / 469.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.344e-05/0.1144, allocations: 7.984 kB / 469.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.276e-06/0.1144, allocations: 0 / 469.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.1145, allocations: 63.95 kB / 469.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.195e-06/0.1146, allocations: 0 / 469.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.317e-05/0.1146, allocations: 0 / 469.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.1147, allocations: 47.94 kB / 469.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.1148, allocations: 0 / 469.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1148, allocations: 0 / 469.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.1148, allocations: 7.938 kB / 469.5 MB, free: 13.89 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.0003872/0.1152, allocations: 365.3 kB / 469.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.1152, allocations: 8.031 kB / 469.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.752e-05/0.1152, allocations: 0.9375 kB / 469.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001828/0.1154, allocations: 160.4 kB / 470 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.1154, allocations: 384 / 470 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.011e-05/0.1155, allocations: 4.375 kB / 470 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.701e-05/0.1156, allocations: 30.25 kB / 470 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.1156, allocations: 192 / 470 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.1156, allocations: 3.938 kB / 470 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.1156, allocations: 12 kB / 470 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.737e-05/0.1156, allocations: 3.938 kB / 470.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001331/0.1158, allocations: 145.7 kB / 470.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.871e-05/0.1158, allocations: 22.59 kB / 470.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.308e-05/0.1158, allocations: 4.859 kB / 470.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.262e-06/0.1158, allocations: 3.938 kB / 470.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.172e-05/0.1159, allocations: 60.27 kB / 470.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.1159, allocations: 0 / 470.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001741/0.1161, allocations: 71.34 kB / 470.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.1162, allocations: 85.09 kB / 470.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.394e-05/0.1163, allocations: 89.86 kB / 470.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.1163, allocations: 25.7 kB / 470.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.423e-05/0.1163, allocations: 80.14 kB / 470.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.1163, allocations: 0 / 470.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.893e-05/0.1164, allocations: 13.84 kB / 470.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002619/0.1166, allocations: 318.8 kB / 471 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.778e-06/0.1166, allocations: 3.938 kB / 471 MB, free: 12.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.861e-06/0.1167, allocations: 0 / 471 MB, free: 12.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.724e-05/0.1167, allocations: 60.27 kB / 471 MB, free: 12.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1167, allocations: 0 / 471 MB, free: 12.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.21e-05/0.1168, allocations: 67.33 kB / 471.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.1168, allocations: 29.7 kB / 471.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.1168, allocations: 4.094 kB / 471.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.1169, allocations: 3.938 kB / 471.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.353e-06/0.1169, allocations: 4 kB / 471.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.1169, allocations: 0 / 471.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.958e-05/0.1169, allocations: 4 kB / 471.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.1169, allocations: 0 / 471.1 MB, free: 11.96 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 8.428e-05/0.117, allocations: 139.5 kB / 471.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.506e-06/0.117, allocations: 0 / 471.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.525e-05/0.117, allocations: 15 kB / 471.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.117, allocations: 4 kB / 471.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1171, allocations: 0 / 471.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.1171, allocations: 0 / 471.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.6e-05/0.1172, allocations: 149.7 kB / 471.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1172, allocations: 0 / 471.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.01e-07/0.1172, allocations: 0 / 471.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1172, allocations: 0 / 471.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.056e-06/0.1172, allocations: 3.938 kB / 471.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1172, allocations: 0 / 471.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1172, allocations: 0 / 471.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001005/0.1173, allocations: 98.77 kB / 471.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.512e-05/0.1174, allocations: 77.11 kB / 471.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.1174, allocations: 7.938 kB / 471.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.076e-05/0.1174, allocations: 0 / 471.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.686e-05/0.1174, allocations: 4 kB / 471.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.1174, allocations: 4 kB / 471.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.743e-05/0.1175, allocations: 79.22 kB / 471.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1175, allocations: 0 / 471.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003165/0.1178, allocations: 28.02 kB / 471.7 MB, free: 11.26 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.000563/0.1184, allocations: 287.3 kB / 472 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001124/0.1185, allocations: 59.41 kB / 472.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1185, allocations: 3.938 kB / 472.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.123e-05/0.1185, allocations: 51.41 kB / 472.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.1187, allocations: 4 kB / 472.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001956/0.1189, allocations: 86.78 kB / 472.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.1191, allocations: 0.6731 MB / 472.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.102e-06/0.1191, allocations: 0 / 472.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.088e-05/0.1192, allocations: 7.438 kB / 472.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1192, allocations: 0 / 472.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of Templates: time 0.004193/0.1234, allocations: 0.7892 MB / 473.7 MB, free: 9.293 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches