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.001252/0.001252, allocations: 107.2 kB / 16.41 MB, free: 6.5 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: 189.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.339/1.339, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2058/0.2058, allocations: 43.53 MB / 314.1 MB, free: 452 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.002301/0.002302, allocations: 73.92 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1062, allocations: 57.78 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003447/0.1097, allocations: 1.886 MB / 0.4892 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001664/0.1114, allocations: 0.9597 MB / 0.4902 GB, free: 9.453 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.1115, allocations: 4 kB / 0.4902 GB, free: 9.449 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006916/0.1122, allocations: 179.5 kB / 0.4903 GB, free: 9.273 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003735/0.1126, allocations: 131.5 kB / 0.4905 GB, free: 9.145 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004876/0.1131, allocations: 183.6 kB / 0.4906 GB, free: 8.965 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003968/0.1135, allocations: 275.3 kB / 0.4909 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.1136, allocations: 29.66 kB / 0.4909 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001997/0.1139, allocations: 115.6 kB / 0.491 GB, free: 8.551 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.1141, allocations: 115.6 kB / 0.4912 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.785e-05/0.1141, allocations: 20 kB / 0.4912 GB, free: 8.418 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001754/0.1143, allocations: 63.91 kB / 0.4912 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.1144, allocations: 67.81 kB / 0.4913 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001395/0.1146, allocations: 103.4 kB / 0.4914 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004277/0.115, allocations: 278.9 kB / 0.4917 GB, free: 7.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.115, allocations: 0 / 0.4917 GB, free: 7.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.115, allocations: 0 / 0.4917 GB, free: 7.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.115, allocations: 0 / 0.4917 GB, free: 7.914 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.001074/0.1161, allocations: 0.6725 MB / 0.4923 GB, free: 7.168 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.1162, allocations: 11.89 kB / 0.4923 GB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.195e-05/0.1162, allocations: 54.67 kB / 0.4924 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.317e-05/0.1163, allocations: 28.8 kB / 0.4924 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003738/0.1167, allocations: 271 kB / 0.4927 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.1168, allocations: 101.4 kB / 0.4928 GB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.771e-05/0.1169, allocations: 12 kB / 0.4928 GB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003349/0.1172, allocations: 157 kB / 0.4929 GB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.1172, allocations: 0 / 0.4929 GB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.1172, allocations: 8 kB / 0.4929 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.1173, allocations: 4 kB / 0.4929 GB, free: 6.453 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002395/0.1175, allocations: 87.88 kB / 0.493 GB, free: 6.367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000848/0.1184, allocations: 0.6102 MB / 0.4936 GB, free: 5.699 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003502/0.1187, allocations: 175.9 kB / 0.4938 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001829/0.1189, allocations: 94.53 kB / 0.4939 GB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.1189, allocations: 4 kB / 0.4939 GB, free: 5.395 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004865/0.1194, allocations: 433 kB / 0.4943 GB, free: 4.895 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 3.908e-06/0.1195, allocations: 3.984 kB / 0.4943 GB, free: 4.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008924/0.1204, allocations: 446.7 kB / 0.4947 GB, free: 4.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001504/0.1205, allocations: 217.6 kB / 0.4949 GB, free: 4.168 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003512/0.1209, allocations: 320.9 kB / 0.4952 GB, free: 3.844 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.1209, allocations: 33.7 kB / 0.4953 GB, free: 3.805 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.121, allocations: 140.6 kB / 0.4954 GB, free: 3.664 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.325e-05/0.1211, allocations: 51.62 kB / 0.4955 GB, free: 3.613 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.398e-05/0.1212, allocations: 53.7 kB / 0.4955 GB, free: 3.555 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.1213, allocations: 338.8 kB / 0.4958 GB, free: 3.215 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.1215, allocations: 51.97 kB / 0.4959 GB, free: 3.164 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.1217, allocations: 154.2 kB / 0.496 GB, free: 2.977 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004086/0.1221, allocations: 350.7 kB / 0.4964 GB, free: 2.566 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1221, allocations: 4 kB / 0.4964 GB, free: 2.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005364/0.1227, allocations: 346.8 kB / 0.4967 GB, free: 2.199 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.536e-05/0.1228, allocations: 101.1 kB / 0.4968 GB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1228, allocations: 0 / 0.4968 GB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.1228, allocations: 4 kB / 0.4968 GB, free: 2.078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.988e-05/0.1229, allocations: 27.86 kB / 0.4968 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.1229, allocations: 4 kB / 0.4968 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/0.1231, allocations: 23.89 kB / 0.4968 GB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/0.1231, allocations: 11.98 kB / 0.4969 GB, free: 2.012 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.0002443/0.1233, allocations: 277.6 kB / 0.4971 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.177e-05/0.1234, allocations: 39.8 kB / 0.4972 GB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.754e-05/0.1235, allocations: 25.7 kB / 0.4972 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1235, allocations: 4 kB / 0.4972 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.1235, allocations: 0 / 0.4972 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1235, allocations: 3.984 kB / 0.4972 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002816/0.1238, allocations: 289.4 kB / 0.4975 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.1238, allocations: 3.938 kB / 0.4975 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.976e-05/0.1238, allocations: 7.938 kB / 0.4975 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.1238, allocations: 4 kB / 0.4975 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.1239, allocations: 11.98 kB / 0.4975 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1239, allocations: 0 / 0.4975 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1239, allocations: 4 kB / 0.4975 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006631/0.1246, allocations: 435.7 kB / 0.4979 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.736e-05/0.1246, allocations: 112.8 kB / 0.498 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.963e-05/0.1247, allocations: 12 kB / 0.498 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.1248, allocations: 15.98 kB / 0.498 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.282e-05/0.1249, allocations: 19.98 kB / 0.4981 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.913e-05/0.1249, allocations: 15.98 kB / 0.4981 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002382/0.1252, allocations: 228.5 kB / 0.4983 GB, free: 400 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1252, allocations: 3.938 kB / 0.4983 GB, free: 396 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003166/0.1255, allocations: 67.94 kB / 0.4984 GB, free: 328 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.002338/0.1279, allocations: 1.302 MB / 0.4996 GB, free: 15.01 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006379/0.1285, allocations: 405.9 kB / 0.5 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1285, allocations: 0 / 0.5 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004022/0.1289, allocations: 342.4 kB / 0.5004 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003523/0.1293, allocations: 56.08 kB / 0.5004 GB, free: 14.15 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003676/0.133, allocations: 2.836 MB / 0.5032 GB, free: 11.15 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.1334, allocations: 0.7479 MB / 0.5039 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.877e-05/0.1335, allocations: 29.55 kB / 0.5039 GB, free: 10.35 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.1336, allocations: 67.41 kB / 0.504 GB, free: 10.28 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1336, allocations: 0 / 0.504 GB, free: 10.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02972/0.1633, allocations: 6.153 MB / 0.51 GB, free: 4.098 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.145/8.309, allocations: 0 / 0.51 GB, free: 4.098 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 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.mat","/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