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.001315/0.001315, allocations: 110.6 kB / 16.41 MB, free: 6.445 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.001892/0.001892, allocations: 185.5 kB / 17.34 MB, free: 5.738 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.412/1.412, allocations: 205.1 MB / 223.2 MB, free: 12.29 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.2114/0.2114, allocations: 43.52 MB / 314.1 MB, free: 484 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.002001/0.002001, allocations: 71.89 kB / 441.3 MB, free: 6.195 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1046, allocations: 57.78 MB / 499.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003498/0.1081, allocations: 1.887 MB / 0.4892 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.1098, allocations: 0.9596 MB / 0.4902 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.686e-05/0.1099, allocations: 7.938 kB / 0.4902 GB, free: 9.469 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006256/0.1106, allocations: 187.4 kB / 0.4904 GB, free: 9.285 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003123/0.1109, allocations: 123.5 kB / 0.4905 GB, free: 9.164 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004196/0.1113, allocations: 175.6 kB / 0.4906 GB, free: 8.992 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003385/0.1117, allocations: 279.3 kB / 0.4909 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.1118, allocations: 29.66 kB / 0.4909 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.1119, allocations: 111.7 kB / 0.491 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001656/0.1121, allocations: 115.6 kB / 0.4911 GB, free: 8.465 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.057e-05/0.1122, allocations: 20 kB / 0.4912 GB, free: 8.445 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.1123, allocations: 67.89 kB / 0.4912 GB, free: 8.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.984e-05/0.1124, allocations: 59.83 kB / 0.4913 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.1126, allocations: 111.5 kB / 0.4914 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003599/0.1129, allocations: 282.8 kB / 0.4917 GB, free: 7.934 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.1129, allocations: 0 / 0.4917 GB, free: 7.934 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1129, allocations: 0 / 0.4917 GB, free: 7.934 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.113, allocations: 4 kB / 0.4917 GB, free: 7.93 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.0009956/0.114, allocations: 0.6647 MB / 0.4923 GB, free: 7.191 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.114, allocations: 11.89 kB / 0.4923 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.542e-05/0.1141, allocations: 46.73 kB / 0.4924 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.332e-05/0.1141, allocations: 32.78 kB / 0.4924 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003582/0.1145, allocations: 278.9 kB / 0.4927 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.917e-05/0.1146, allocations: 97.42 kB / 0.4928 GB, free: 6.672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.707e-05/0.1147, allocations: 16 kB / 0.4928 GB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003296/0.115, allocations: 157 kB / 0.4929 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.115, allocations: 0 / 0.4929 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.115, allocations: 15.94 kB / 0.4929 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.115, allocations: 0 / 0.4929 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000242/0.1153, allocations: 87.92 kB / 0.493 GB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008389/0.1161, allocations: 0.6063 MB / 0.4936 GB, free: 5.719 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003563/0.1165, allocations: 175.9 kB / 0.4938 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.1167, allocations: 90.55 kB / 0.4939 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.1167, allocations: 0 / 0.4939 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004735/0.1172, allocations: 437 kB / 0.4943 GB, free: 4.918 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.412e-06/0.1172, allocations: 4 kB / 0.4943 GB, free: 4.914 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008628/0.1181, allocations: 438.5 kB / 0.4947 GB, free: 4.461 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/0.1182, allocations: 229.5 kB / 0.4949 GB, free: 4.188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003518/0.1186, allocations: 312.9 kB / 0.4952 GB, free: 3.871 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.726e-05/0.1187, allocations: 33.7 kB / 0.4953 GB, free: 3.832 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.1188, allocations: 144.6 kB / 0.4954 GB, free: 3.688 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.7e-05/0.1188, allocations: 51.62 kB / 0.4955 GB, free: 3.637 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.119, allocations: 57.69 kB / 0.4955 GB, free: 3.574 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1191, allocations: 338.8 kB / 0.4958 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.1193, allocations: 55.97 kB / 0.4959 GB, free: 3.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002203/0.1195, allocations: 146.3 kB / 0.496 GB, free: 3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004377/0.12, allocations: 359 kB / 0.4964 GB, free: 2.582 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.12, allocations: 0 / 0.4964 GB, free: 2.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005609/0.1205, allocations: 354.5 kB / 0.4967 GB, free: 2.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.467e-05/0.1206, allocations: 97.09 kB / 0.4968 GB, free: 2.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1206, allocations: 0 / 0.4968 GB, free: 2.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.1207, allocations: 4 kB / 0.4968 GB, free: 2.094 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.1208, allocations: 23.92 kB / 0.4968 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.1208, allocations: 7.938 kB / 0.4968 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.1209, allocations: 23.94 kB / 0.4969 GB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.975e-05/0.121, allocations: 8 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.000247/0.1212, allocations: 269.4 kB / 0.4971 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.681e-05/0.1213, allocations: 43.78 kB / 0.4972 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.623e-05/0.1213, allocations: 17.72 kB / 0.4972 GB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.1214, allocations: 4 kB / 0.4972 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1214, allocations: 0 / 0.4972 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1214, allocations: 4.172 kB / 0.4972 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003099/0.1217, allocations: 293.4 kB / 0.4975 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.1217, allocations: 3.938 kB / 0.4975 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.153e-05/0.1217, allocations: 11.97 kB / 0.4975 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1218, allocations: 4 kB / 0.4975 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.1218, allocations: 8 kB / 0.4975 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.523e-06/0.1218, allocations: 4 kB / 0.4975 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.1218, allocations: 0 / 0.4975 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000667/0.1225, allocations: 435.7 kB / 0.4979 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.877e-05/0.1226, allocations: 112.8 kB / 0.498 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.449e-05/0.1226, allocations: 12 kB / 0.498 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.1228, allocations: 19.98 kB / 0.498 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.438e-05/0.1228, allocations: 15.98 kB / 0.4981 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.746e-05/0.1229, allocations: 19.98 kB / 0.4981 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002508/0.1231, allocations: 232.4 kB / 0.4983 GB, free: 420 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1231, allocations: 0 / 0.4983 GB, free: 420 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003263/0.1235, 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.002426/0.1259, allocations: 1.301 MB / 0.4996 GB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005921/0.1265, allocations: 401.9 kB / 0.5 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1265, allocations: 0 / 0.5 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003915/0.1269, allocations: 342.1 kB / 0.5003 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.0003426/0.1273, allocations: 51.69 kB / 0.5004 GB, free: 14.19 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003717/0.131, allocations: 2.836 MB / 0.5032 GB, free: 11.19 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/0.1314, allocations: 0.7479 MB / 0.5039 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.1315, allocations: 33.83 kB / 0.5039 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.1317, allocations: 63.42 kB / 0.504 GB, free: 10.32 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1317, allocations: 0 / 0.504 GB, free: 10.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02943/0.1611, allocations: 6.162 MB / 0.51 GB, free: 4.121 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.923/8.084, allocations: 7.875 kB / 0.51 GB, free: 4.113 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