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.001381/0.001381, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001588/0.001588, allocations: 216.4 kB / 22.25 MB, free: 4.855 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.484/1.484, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo): time 0.1192/0.1192, allocations: 16.95 MB / 329.4 MB, free: 2.066 MB / 254.1 MB " [Timeout remaining time 180] Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 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.002136/0.002136, allocations: 67.91 kB / 459.7 MB, free: 2.109 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.1013, allocations: 57.64 MB / 0.5052 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002387/0.1037, allocations: 1.002 MB / 0.5062 GB, free: 7.383 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000683/0.1044, allocations: 259.8 kB / 0.5064 GB, free: 7.129 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.41e-05/0.1045, allocations: 4 kB / 0.5064 GB, free: 7.125 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001631/0.1047, allocations: 43.64 kB / 0.5065 GB, free: 7.082 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000243/0.1049, allocations: 47.72 kB / 0.5065 GB, free: 7.035 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001836/0.1051, allocations: 79.83 kB / 0.5066 GB, free: 6.957 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003158/0.1054, allocations: 235.4 kB / 0.5068 GB, free: 6.727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.304e-05/0.1054, allocations: 16.59 kB / 0.5068 GB, free: 6.711 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001621/0.1056, allocations: 115.6 kB / 0.5069 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.08e-05/0.1057, allocations: 43.61 kB / 0.507 GB, free: 6.555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.197e-05/0.1057, allocations: 8 kB / 0.507 GB, free: 6.547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.993e-05/0.1058, allocations: 15.98 kB / 0.507 GB, free: 6.531 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.336e-05/0.1058, allocations: 27.73 kB / 0.507 GB, free: 6.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.065e-05/0.1059, allocations: 35.78 kB / 0.5071 GB, free: 6.469 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001725/0.1061, allocations: 87.81 kB / 0.5072 GB, free: 6.383 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1061, allocations: 0 / 0.5072 GB, free: 6.383 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1061, allocations: 0 / 0.5072 GB, free: 6.383 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1061, allocations: 0 / 0.5072 GB, free: 6.383 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.0005864/0.1067, allocations: 367.5 kB / 0.5075 GB, free: 5.988 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.1067, allocations: 12.03 kB / 0.5075 GB, free: 5.977 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.864e-05/0.1068, allocations: 38.75 kB / 0.5076 GB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.689e-05/0.1068, allocations: 12.83 kB / 0.5076 GB, free: 5.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002005/0.107, allocations: 149.6 kB / 0.5077 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.001e-05/0.107, allocations: 8 kB / 0.5077 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.107, allocations: 8 kB / 0.5077 GB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003417/0.1074, allocations: 164.4 kB / 0.5079 GB, free: 5.543 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.1074, allocations: 0 / 0.5079 GB, free: 5.543 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.1074, allocations: 0 / 0.5079 GB, free: 5.543 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1074, allocations: 4 kB / 0.5079 GB, free: 5.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002413/0.1077, allocations: 97.59 kB / 0.508 GB, free: 5.438 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008547/0.1085, allocations: 0.7154 MB / 0.5087 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002088/0.1087, allocations: 110.9 kB / 0.5088 GB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.911e-05/0.1088, allocations: 59.41 kB / 0.5088 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.1088, allocations: 3.938 kB / 0.5088 GB, free: 4.453 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002252/0.109, allocations: 126.7 kB / 0.509 GB, free: 4.305 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.312e-06/0.109, allocations: 0 / 0.509 GB, free: 4.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003946/0.1094, allocations: 210.7 kB / 0.5092 GB, free: 4.074 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.439e-05/0.1095, allocations: 106.8 kB / 0.5093 GB, free: 3.945 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001793/0.1097, allocations: 178.9 kB / 0.5094 GB, free: 3.762 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.1097, allocations: 33.7 kB / 0.5095 GB, free: 3.723 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.843e-05/0.1098, allocations: 116.3 kB / 0.5096 GB, free: 3.602 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.692e-05/0.1098, allocations: 23.83 kB / 0.5096 GB, free: 3.578 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.408e-05/0.1099, allocations: 45.66 kB / 0.5096 GB, free: 3.527 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.11, allocations: 318.8 kB / 0.5099 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.585e-05/0.1101, allocations: 53.69 kB / 0.51 GB, free: 3.148 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.1103, allocations: 112.5 kB / 0.5101 GB, free: 3.008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003856/0.1107, allocations: 261.5 kB / 0.5104 GB, free: 2.703 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1107, allocations: 0 / 0.5104 GB, free: 2.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003521/0.111, allocations: 220.8 kB / 0.5106 GB, free: 2.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.716e-05/0.111, allocations: 33.7 kB / 0.5106 GB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1111, allocations: 0 / 0.5106 GB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.1111, allocations: 4 kB / 0.5106 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.994e-05/0.1112, allocations: 19.92 kB / 0.5106 GB, free: 2.406 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.1112, allocations: 4 kB / 0.5106 GB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.582e-05/0.1112, allocations: 20.19 kB / 0.5106 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.1113, allocations: 8 kB / 0.5107 GB, free: 2.375 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.000191/0.1115, allocations: 176.4 kB / 0.5108 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.649e-05/0.1115, allocations: 15.91 kB / 0.5108 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.911e-05/0.1115, allocations: 17.08 kB / 0.5109 GB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.1115, allocations: 7.938 kB / 0.5109 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.1115, allocations: 0 / 0.5109 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1115, allocations: 0 / 0.5109 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005717/0.1121, allocations: 492.2 kB / 0.5113 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1121, allocations: 0 / 0.5113 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.258e-05/0.1121, allocations: 4 kB / 0.5113 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.1121, allocations: 7.984 kB / 0.5113 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.457e-06/0.1122, allocations: 0 / 0.5113 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1122, allocations: 4 kB / 0.5113 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1122, allocations: 3.938 kB / 0.5113 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003397/0.1125, allocations: 342 kB / 0.5117 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.388e-05/0.1125, allocations: 15.89 kB / 0.5117 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.1125, allocations: 0 / 0.5117 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.1126, allocations: 4 kB / 0.5117 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.219e-05/0.1127, allocations: 15.97 kB / 0.5117 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.193e-06/0.1127, allocations: 4 kB / 0.5117 GB, free: 1.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001113/0.1128, allocations: 124.2 kB / 0.5118 GB, free: 1.059 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1128, allocations: 4 kB / 0.5118 GB, free: 1.055 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003205/0.1131, allocations: 27.95 kB / 0.5119 GB, free: 1.027 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.0006751/0.1138, allocations: 0.8634 MB / 0.5127 GB, free: 128 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.1722/0.286, allocations: 189.3 kB / 0.5129 GB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.286, allocations: 0.5938 kB / 0.5129 GB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.2862, allocations: 113.6 kB / 0.513 GB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/0.2866, allocations: 15.92 kB / 0.513 GB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001751/0.2883, allocations: 2.001 MB / 0.515 GB, free: 13.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.927e-05/0.2884, allocations: 98.5 kB / 0.5151 GB, free: 13.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.16e-05/0.2885, allocations: 22.53 kB / 0.5151 GB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.758e-05/0.2885, allocations: 35.62 kB / 0.5151 GB, free: 13.51 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2885, allocations: 1.031 kB / 0.5151 GB, free: 13.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02719/0.3157, allocations: 3.073 MB / 0.5181 GB, free: 12.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.57, allocations: 8.688 kB / 0.5181 GB, free: 12.73 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.426107145380229]