Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.SingleTD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001629/0.001629, allocations: 107.2 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001725/0.001725, allocations: 212 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.483/1.483, allocations: 230.6 MB / 252.8 MB, free: 8.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.08148/0.08148, allocations: 16.96 MB / 325.8 MB, free: 3.516 MB / 254.1 MB " [Timeout remaining time 180] Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PNlib.Examples.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PNlib requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002041/0.002041, allocations: 71.88 kB / 454.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1122, allocations: 57.59 MB / 0.5002 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002666/0.1148, allocations: 1.056 MB / 0.5012 GB, free: 9.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008248/0.1157, allocations: 275.7 kB / 0.5015 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.1158, allocations: 0 / 0.5015 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002296/0.116, allocations: 43.7 kB / 0.5015 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000345/0.1164, allocations: 47.66 kB / 0.5016 GB, free: 9.621 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002261/0.1166, allocations: 71.89 kB / 0.5016 GB, free: 9.551 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004165/0.117, allocations: 227.5 kB / 0.5019 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.439e-05/0.1171, allocations: 16.39 kB / 0.5019 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.1173, allocations: 115.6 kB / 0.502 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/0.1174, allocations: 55.53 kB / 0.502 GB, free: 9.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.329e-05/0.1174, allocations: 8 kB / 0.502 GB, free: 9.133 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.965e-05/0.1175, allocations: 15.94 kB / 0.5021 GB, free: 9.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.917e-05/0.1176, allocations: 23.84 kB / 0.5021 GB, free: 9.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.409e-05/0.1176, allocations: 43.67 kB / 0.5021 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002292/0.1179, allocations: 79.88 kB / 0.5022 GB, free: 8.973 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1179, allocations: 0 / 0.5022 GB, free: 8.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1179, allocations: 0 / 0.5022 GB, free: 8.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.1179, allocations: 4 kB / 0.5022 GB, free: 8.969 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0007233/0.1186, allocations: 448.5 kB / 0.5026 GB, free: 8.477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.1187, allocations: 12.03 kB / 0.5026 GB, free: 8.465 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.67e-05/0.1187, allocations: 42.73 kB / 0.5027 GB, free: 8.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.704e-05/0.1187, allocations: 12.89 kB / 0.5027 GB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/0.119, allocations: 204.3 kB / 0.5029 GB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.859e-05/0.119, allocations: 11.91 kB / 0.5029 GB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/0.119, allocations: 4 kB / 0.5029 GB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000303/0.1193, allocations: 134.7 kB / 0.503 GB, free: 7.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1193, allocations: 0 / 0.503 GB, free: 7.992 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.1194, allocations: 4 kB / 0.503 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.1194, allocations: 4 kB / 0.503 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000223/0.1196, allocations: 71.83 kB / 0.5031 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009324/0.1205, allocations: 0.9059 MB / 0.504 GB, free: 6.902 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000211/0.1207, allocations: 69.2 kB / 0.5041 GB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.062e-05/0.1208, allocations: 41.73 kB / 0.5041 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.487e-06/0.1208, allocations: 0 / 0.5041 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002399/0.1211, allocations: 93.03 kB / 0.5042 GB, free: 6.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.192e-06/0.1211, allocations: 0 / 0.5042 GB, free: 6.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003759/0.1214, allocations: 151.2 kB / 0.5043 GB, free: 6.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.14e-05/0.1215, allocations: 114.8 kB / 0.5044 GB, free: 6.363 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.1217, allocations: 175.1 kB / 0.5046 GB, free: 6.184 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.1217, allocations: 25.7 kB / 0.5046 GB, free: 6.152 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.774e-05/0.1218, allocations: 120.2 kB / 0.5047 GB, free: 6.027 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.055e-05/0.1218, allocations: 27.91 kB / 0.5048 GB, free: 6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.757e-05/0.1219, allocations: 33.7 kB / 0.5048 GB, free: 5.961 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1221, allocations: 326.8 kB / 0.5051 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.259e-05/0.1221, allocations: 35.92 kB / 0.5052 GB, free: 5.598 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.1223, allocations: 85.53 kB / 0.5052 GB, free: 5.492 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004028/0.1227, allocations: 277.6 kB / 0.5055 GB, free: 5.172 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.1227, allocations: 7.938 kB / 0.5055 GB, free: 5.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003031/0.123, allocations: 183.2 kB / 0.5057 GB, free: 4.973 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.906e-05/0.123, allocations: 33.7 kB / 0.5057 GB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.123, allocations: 0 / 0.5057 GB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.123, allocations: 4 kB / 0.5057 GB, free: 4.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.148e-05/0.1231, allocations: 23.92 kB / 0.5057 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.679e-06/0.1231, allocations: 4 kB / 0.5057 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.661e-05/0.1232, allocations: 7.953 kB / 0.5057 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.1232, allocations: 12 kB / 0.5058 GB, free: 4.883 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: T1.firingTime:DISCRETE(fixed = true protected = true ) \"next putative firing time\" type: Real T1.ani:DISCRETE(fixed = true protected = true ) \"for transition animation\" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) \"for transition animation\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.T1.firingTime,T1.activation.active,T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,$whenCondition2,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,T1.firingCon,T1.enabledByInPlaces,$whenCondition1,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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 0.0001867/0.1234, allocations: 175.5 kB / 0.5059 GB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.197e-05/0.1234, allocations: 7.953 kB / 0.5059 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.205e-05/0.1235, allocations: 16.98 kB / 0.506 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1235, allocations: 4 kB / 0.506 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1235, allocations: 0 / 0.506 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1235, allocations: 0 / 0.506 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005507/0.124, allocations: 499.3 kB / 0.5064 GB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.124, allocations: 4 kB / 0.5064 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.093e-05/0.1241, allocations: 7.984 kB / 0.5064 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1241, allocations: 4 kB / 0.5064 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.1241, allocations: 0 / 0.5064 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1241, allocations: 3.938 kB / 0.5065 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1241, allocations: 128 / 0.5065 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003353/0.1244, allocations: 320.3 kB / 0.5068 GB, free: 3.762 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.966e-05/0.1245, allocations: 89.06 kB / 0.5068 GB, free: 3.656 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.1245, allocations: 4 kB / 0.5068 GB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.1246, allocations: 4 kB / 0.5068 GB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.1246, allocations: 11.98 kB / 0.5069 GB, free: 3.637 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.1246, allocations: 4 kB / 0.5069 GB, free: 3.633 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001039/0.1247, allocations: 128.2 kB / 0.507 GB, free: 3.508 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1247, allocations: 0 / 0.507 GB, free: 3.508 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003035/0.125, allocations: 24 kB / 0.507 GB, free: 3.484 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,T1.fireTime,T1.ani,T1.active,$whenCondition2,T1.firingTime,T1.delayPassed,T1.activation.active) * Number of discrete states: 2 (T1.activation.active,T1.delayPassed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * 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.0006543/0.1257, allocations: 0.8499 MB / 0.5078 GB, free: 2.602 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000282/0.126, allocations: 139.2 kB / 0.508 GB, free: 2.453 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.126, allocations: 384 / 0.508 GB, free: 2.453 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001221/0.1261, allocations: 91.33 kB / 0.5081 GB, free: 2.352 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000333/0.1264, allocations: 14.66 kB / 0.5081 GB, free: 2.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002223/0.1287, allocations: 1.862 MB / 0.5099 GB, free: 356 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.197/0.3257, allocations: 0.7072 MB / 0.5106 GB, free: 16.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001321/0.3258, allocations: 22.28 kB / 0.5106 GB, free: 16.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.384e-05/0.3259, allocations: 37.78 kB / 0.5106 GB, free: 16.02 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3259, allocations: 1.375 kB / 0.5106 GB, free: 16.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02435/0.3503, allocations: 2.485 MB / 0.5131 GB, free: 15.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.098/8.449, allocations: 9.938 kB / 0.5131 GB, free: 15.7 MB / 382.1 MB " [Timeout remaining time 651] (rm -f PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.SingleTD.pipe >> ../files/PNlib_PNlib.Examples.DisTest.SingleTD.sim & python3 -m fmpy simulate --output-file PNlib_PNlib.Examples.DisTest.SingleTD_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PNlib_PNlib_Examples_DisTest_SingleTD.fmu > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PNlib_PNlib.Examples.DisTest.SingleTD_res.csv","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.SingleTD.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable T1.active in file PNlib_PNlib.Examples.DisTest.SingleTD_res.csv. Warning: Get data of variable T1.active from file PNlib_PNlib.Examples.DisTest.SingleTD_res.csv failed! Error: Could not read variable T1.fire in file PNlib_PNlib.Examples.DisTest.SingleTD_res.csv. Warning: Get data of variable T1.fire from file PNlib_PNlib.Examples.DisTest.SingleTD_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.20060857012868]