Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.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.Blocks.ConversionBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ydegC|ydegF|ydegRk|ydeg|yrpm|ykmh|yday|yhour|yminute|ylitre|ykWh|ybar|ygps",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks") translateModel(ModelicaTest.Blocks.ConversionBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ydegC|ydegF|ydegRk|ydeg|yrpm|ykmh|yday|yhour|yminute|ylitre|ykWh|ybar|ygps",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 115.1 kB / 17.08 MB, free: 6.016 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.001309/0.001309, allocations: 197.3 kB / 18.01 MB, free: 5.098 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.201/1.201, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.1896/0.1896, allocations: 43.51 MB / 314.8 MB, free: 476 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.0013/0.0013, allocations: 71.89 kB / 442.5 MB, free: 5.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0987/0.1, allocations: 57.78 MB / 0.4886 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.003207/0.1033, allocations: 2.094 MB / 0.4906 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.1052, allocations: 1.31 MB / 0.4919 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.1054, allocations: 8 kB / 0.4919 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.231e-05/0.1055, allocations: 23.67 kB / 0.4919 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001442/0.1057, allocations: 27.72 kB / 0.4919 GB, free: 8.305 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005858/0.1062, allocations: 179.3 kB / 0.4921 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.1065, allocations: 180.1 kB / 0.4923 GB, free: 7.949 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002328/0.1067, allocations: 119.2 kB / 0.4924 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.1069, allocations: 75.64 kB / 0.4925 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001188/0.107, allocations: 87.55 kB / 0.4925 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.681e-05/0.107, allocations: 16 kB / 0.4926 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003571/0.1074, allocations: 147.9 kB / 0.4927 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.334e-05/0.1075, allocations: 51.77 kB / 0.4928 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.054e-05/0.1075, allocations: 91.47 kB / 0.4928 GB, free: 7.371 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004679/0.108, allocations: 310.9 kB / 0.4931 GB, free: 7.066 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.108, allocations: 0 / 0.4931 GB, free: 7.066 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.108, allocations: 0 / 0.4931 GB, free: 7.066 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.1081, allocations: 0 / 0.4931 GB, free: 7.066 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0006367/0.1087, allocations: 0.5265 MB / 0.4936 GB, free: 6.492 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.1087, allocations: 8.031 kB / 0.4937 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000858/0.1096, allocations: 72.61 kB / 0.4937 GB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.1097, allocations: 180.2 kB / 0.4939 GB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.748e-05/0.1098, allocations: 20.94 kB / 0.4939 GB, free: 6.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.131e-05/0.1098, allocations: 24.38 kB / 0.4939 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000336/0.1102, allocations: 205.1 kB / 0.4941 GB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.1102, allocations: 4 kB / 0.4941 GB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.1102, allocations: 8 kB / 0.4941 GB, free: 5.934 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.964e-06/0.1102, allocations: 8 kB / 0.4942 GB, free: 5.926 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002489/0.1105, allocations: 146.2 kB / 0.4943 GB, free: 5.785 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008205/0.1113, allocations: 0.5927 MB / 0.4949 GB, free: 5.141 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004851/0.1118, allocations: 235.3 kB / 0.4951 GB, free: 4.902 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.1119, allocations: 69.3 kB / 0.4952 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/0.112, allocations: 8.172 kB / 0.4952 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.112, allocations: 38.72 kB / 0.4952 GB, free: 4.777 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.473e-06/0.112, allocations: 4 kB / 0.4952 GB, free: 4.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0004275/0.1124, allocations: 214.2 kB / 0.4954 GB, free: 4.559 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/0.1125, allocations: 55.41 kB / 0.4955 GB, free: 4.492 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.448e-05/0.1126, allocations: 101.8 kB / 0.4956 GB, free: 4.383 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.1126, allocations: 33.7 kB / 0.4956 GB, free: 4.344 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.307e-05/0.1127, allocations: 132.5 kB / 0.4957 GB, free: 4.211 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.085e-05/0.1127, allocations: 90.59 kB / 0.4958 GB, free: 4.121 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.876e-05/0.1128, allocations: 45.7 kB / 0.4959 GB, free: 4.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.568e-05/0.1129, allocations: 326.8 kB / 0.4962 GB, free: 3.742 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.546e-05/0.113, allocations: 35.98 kB / 0.4962 GB, free: 3.707 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.678e-05/0.1131, allocations: 44.22 kB / 0.4962 GB, free: 3.664 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.1133, allocations: 126.2 kB / 0.4964 GB, free: 3.539 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.1133, allocations: 4 kB / 0.4964 GB, free: 3.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002437/0.1135, allocations: 165.5 kB / 0.4965 GB, free: 3.367 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.1136, allocations: 11.98 kB / 0.4965 GB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1136, allocations: 7.938 kB / 0.4965 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.1136, allocations: 0 / 0.4965 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003307/0.1139, allocations: 95.89 kB / 0.4966 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.1139, allocations: 0 / 0.4966 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.898e-05/0.114, allocations: 15.89 kB / 0.4967 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.114, allocations: 8 kB / 0.4967 GB, free: 3.23 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * 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 9.737e-05/0.1141, allocations: 137.7 kB / 0.4968 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.519e-05/0.1142, allocations: 11.84 kB / 0.4968 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.311e-05/0.1142, allocations: 29.12 kB / 0.4968 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.1142, allocations: 0 / 0.4968 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.1143, allocations: 4 kB / 0.4968 GB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.1143, allocations: 3.984 kB / 0.4968 GB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002771/0.1146, allocations: 261.5 kB / 0.4971 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.1146, allocations: 3.938 kB / 0.4971 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003216/0.1149, allocations: 99.94 kB / 0.4972 GB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1149, allocations: 0 / 0.4972 GB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.1149, allocations: 8 kB / 0.4972 GB, free: 2.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1149, allocations: 3.938 kB / 0.4972 GB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1149, allocations: 0 / 0.4972 GB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002995/0.1152, allocations: 279.3 kB / 0.4975 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.459e-05/0.1153, allocations: 92.89 kB / 0.4976 GB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.1153, allocations: 4 kB / 0.4976 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.62e-05/0.1154, allocations: 8 kB / 0.4976 GB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.156e-05/0.1155, allocations: 11.97 kB / 0.4976 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.1155, allocations: 12 kB / 0.4976 GB, free: 2.184 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.805e-05/0.1155, allocations: 79.28 kB / 0.4977 GB, free: 2.105 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.323e-06/0.1155, allocations: 0 / 0.4977 GB, free: 2.105 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002758/0.1158, allocations: 55.72 kB / 0.4977 GB, free: 2.051 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * 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 9.657e-05/0.1159, allocations: 107.2 kB / 0.4978 GB, free: 1.938 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002563/0.1162, allocations: 132.3 kB / 0.4979 GB, free: 1.809 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1162, allocations: 0 / 0.4979 GB, free: 1.809 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.1163, allocations: 75.91 kB / 0.498 GB, free: 1.734 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002342/0.1165, allocations: 18.59 kB / 0.498 GB, free: 1.719 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006952/0.1172, allocations: 0.4894 MB / 0.4985 GB, free: 1.195 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.1175, allocations: 0.7319 MB / 0.4992 GB, free: 448 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.165e-05/0.1176, allocations: 15.44 kB / 0.4992 GB, free: 432 kB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1176, allocations: 0 / 0.4992 GB, free: 432 kB / 382.1 MB Notification: Performance of Templates: time 0.0034/0.121, allocations: 1.764 MB / 0.501 GB, free: 14.66 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ConversionBlocks/ConversionBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches