Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.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: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 107.8 kB / 16.41 MB, free: 6.496 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.001248/0.001248, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.285/1.285, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.1966/0.1966, allocations: 43.52 MB / 314.1 MB, free: 468 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.001663/0.001663, allocations: 67.91 kB / 441.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1038, allocations: 57.78 MB / 499.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003386/0.1072, allocations: 1.883 MB / 0.4892 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00162/0.1089, allocations: 0.952 MB / 0.4902 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.1091, allocations: 7.938 kB / 0.4902 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006872/0.1098, allocations: 179.5 kB / 0.4903 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003572/0.1102, allocations: 135.5 kB / 0.4905 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004825/0.1107, allocations: 175.6 kB / 0.4906 GB, free: 9 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000361/0.111, allocations: 275.3 kB / 0.4909 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.1112, allocations: 33.64 kB / 0.4909 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002008/0.1114, allocations: 119.6 kB / 0.491 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.1116, allocations: 111.6 kB / 0.4911 GB, free: 8.469 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.5e-05/0.1116, allocations: 20 kB / 0.4912 GB, free: 8.449 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.1118, allocations: 67.89 kB / 0.4912 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.846e-05/0.1119, allocations: 63.83 kB / 0.4913 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.112, allocations: 111.4 kB / 0.4914 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004063/0.1124, allocations: 274.9 kB / 0.4917 GB, free: 7.941 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.1125, allocations: 4 kB / 0.4917 GB, free: 7.938 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1125, allocations: 0 / 0.4917 GB, free: 7.938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.488e-05/0.1125, allocations: 0 / 0.4917 GB, free: 7.938 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001187/0.1137, allocations: 0.668 MB / 0.4923 GB, free: 7.199 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.1137, allocations: 15.89 kB / 0.4923 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.317e-05/0.1138, allocations: 50.67 kB / 0.4924 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.51e-05/0.1139, allocations: 28.8 kB / 0.4924 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003429/0.1142, allocations: 275 kB / 0.4927 GB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.278e-05/0.1143, allocations: 97.42 kB / 0.4928 GB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.654e-05/0.1144, allocations: 12 kB / 0.4928 GB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003086/0.1147, allocations: 161 kB / 0.4929 GB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.585e-06/0.1147, allocations: 0 / 0.4929 GB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.1147, allocations: 8 kB / 0.4929 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.1147, allocations: 0 / 0.4929 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002199/0.115, allocations: 91.86 kB / 0.493 GB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007706/0.1157, allocations: 0.6102 MB / 0.4936 GB, free: 5.727 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003295/0.1161, allocations: 179.9 kB / 0.4938 GB, free: 5.523 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.1162, allocations: 90.55 kB / 0.4939 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.1163, allocations: 0 / 0.4939 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004327/0.1167, allocations: 441 kB / 0.4943 GB, free: 4.918 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.783e-06/0.1167, allocations: 0 / 0.4943 GB, free: 4.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.000783/0.1175, allocations: 442.4 kB / 0.4947 GB, free: 4.461 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.1176, allocations: 221.6 kB / 0.4949 GB, free: 4.195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002966/0.1179, allocations: 312.9 kB / 0.4952 GB, free: 3.879 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.118, allocations: 37.7 kB / 0.4953 GB, free: 3.836 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.239e-05/0.1181, allocations: 140.6 kB / 0.4954 GB, free: 3.695 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.907e-05/0.1181, allocations: 51.62 kB / 0.4954 GB, free: 3.645 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.396e-05/0.1182, allocations: 53.69 kB / 0.4955 GB, free: 3.586 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.1184, allocations: 338.8 kB / 0.4958 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001341/0.1186, allocations: 51.97 kB / 0.4959 GB, free: 3.195 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.1188, allocations: 150.2 kB / 0.496 GB, free: 3.012 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003735/0.1191, allocations: 355 kB / 0.4964 GB, free: 2.598 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1192, allocations: 0 / 0.4964 GB, free: 2.598 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005029/0.1197, allocations: 358.4 kB / 0.4967 GB, free: 2.223 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.953e-05/0.1197, allocations: 97.09 kB / 0.4968 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.1198, allocations: 0 / 0.4968 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.1198, allocations: 7.938 kB / 0.4968 GB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.1199, allocations: 27.86 kB / 0.4968 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.1199, allocations: 4 kB / 0.4968 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.12, allocations: 28.25 kB / 0.4969 GB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.1201, allocations: 12.16 kB / 0.4969 GB, free: 2.031 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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 0.0002151/0.1203, allocations: 277.4 kB / 0.4971 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.306e-05/0.1204, allocations: 31.8 kB / 0.4972 GB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.852e-05/0.1204, allocations: 29.88 kB / 0.4972 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.1204, allocations: 4 kB / 0.4972 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.1205, allocations: 3.984 kB / 0.4972 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.1205, allocations: 0 / 0.4972 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002503/0.1207, allocations: 289.4 kB / 0.4975 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.1207, allocations: 3.938 kB / 0.4975 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.856e-05/0.1208, allocations: 11.92 kB / 0.4975 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1208, allocations: 4 kB / 0.4975 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.1208, allocations: 12 kB / 0.4975 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.1208, allocations: 4 kB / 0.4975 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1208, allocations: 0 / 0.4975 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006875/0.1215, allocations: 435.7 kB / 0.4979 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.805e-05/0.1216, allocations: 108.8 kB / 0.498 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.395e-05/0.1217, allocations: 12 kB / 0.498 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.1218, allocations: 15.98 kB / 0.498 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.255e-05/0.1219, allocations: 23.97 kB / 0.4981 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/0.1219, allocations: 15.94 kB / 0.4981 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002083/0.1221, allocations: 228.5 kB / 0.4983 GB, free: 420 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1221, allocations: 0 / 0.4983 GB, free: 420 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003049/0.1224, allocations: 67.94 kB / 0.4984 GB, free: 352 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.001706/0.1241, allocations: 1.305 MB / 0.4996 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005512/0.1247, allocations: 398 kB / 0.5 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1247, allocations: 0 / 0.5 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003388/0.1251, allocations: 342.1 kB / 0.5004 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.1254, allocations: 56.09 kB / 0.5004 GB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00327/0.1287, allocations: 2.836 MB / 0.5032 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.129, allocations: 0.7479 MB / 0.5039 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.997e-05/0.1291, allocations: 29.53 kB / 0.5039 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.1292, allocations: 67.73 kB / 0.504 GB, free: 10.31 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1293, allocations: 0 / 0.504 GB, free: 10.31 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02296/0.1522, allocations: 6.153 MB / 0.51 GB, free: 4.125 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.815/7.968, allocations: 4.062 kB / 0.51 GB, free: 4.121 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches