Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.SingleTC.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.001586/0.001586, 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.001865/0.001865, allocations: 212.6 kB / 22.25 MB, free: 4.859 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.494/1.494, allocations: 230.6 MB / 256 MB, free: 7.801 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.08563/0.08563, allocations: 16.95 MB / 329.4 MB, free: 2.098 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.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",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.002111/0.002111, allocations: 71.88 kB / 459.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1135, allocations: 57.63 MB / 0.5052 GB, free: 8.453 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002384/0.1159, allocations: 1.005 MB / 0.5062 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008492/0.1168, allocations: 375.1 kB / 0.5065 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.406e-05/0.1168, allocations: 4 kB / 0.5065 GB, free: 7.074 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.117, allocations: 55.62 kB / 0.5066 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002658/0.1173, allocations: 47.66 kB / 0.5066 GB, free: 6.973 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002588/0.1175, allocations: 127.8 kB / 0.5067 GB, free: 6.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004019/0.1179, allocations: 303.4 kB / 0.507 GB, free: 6.551 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.358e-05/0.118, allocations: 16.58 kB / 0.507 GB, free: 6.535 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.1182, allocations: 151.6 kB / 0.5072 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.1183, allocations: 51.53 kB / 0.5072 GB, free: 6.336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.778e-05/0.1183, allocations: 4 kB / 0.5072 GB, free: 6.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001436/0.1184, allocations: 63.88 kB / 0.5073 GB, free: 6.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.908e-05/0.1185, allocations: 23.84 kB / 0.5073 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.994e-05/0.1186, allocations: 31.8 kB / 0.5074 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002376/0.1188, allocations: 127.6 kB / 0.5075 GB, free: 6.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1188, allocations: 3.938 kB / 0.5075 GB, free: 6.086 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1188, allocations: 0 / 0.5075 GB, free: 6.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.1189, allocations: 0 / 0.5075 GB, free: 6.086 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005859/0.1194, allocations: 351.5 kB / 0.5078 GB, free: 5.707 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.1195, allocations: 12.03 kB / 0.5078 GB, free: 5.695 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.077e-05/0.1195, allocations: 38.73 kB / 0.5079 GB, free: 5.648 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.712e-05/0.1196, allocations: 16.84 kB / 0.5079 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002033/0.1198, allocations: 141.7 kB / 0.508 GB, free: 5.473 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.1198, allocations: 8.125 kB / 0.508 GB, free: 5.465 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.005e-05/0.1198, allocations: 8 kB / 0.508 GB, free: 5.457 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002319/0.12, allocations: 143.6 kB / 0.5082 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.1201, allocations: 7.938 kB / 0.5082 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.1201, allocations: 0 / 0.5082 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.1201, allocations: 0 / 0.5082 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001253/0.1202, allocations: 81.61 kB / 0.5083 GB, free: 5.195 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007671/0.121, allocations: 0.6292 MB / 0.5089 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001986/0.1212, allocations: 84.25 kB / 0.509 GB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.72e-05/0.1212, allocations: 42.69 kB / 0.509 GB, free: 4.359 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.1212, allocations: 0 / 0.509 GB, free: 4.359 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.1213, allocations: 42.56 kB / 0.509 GB, free: 4.309 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 9.11e-07/0.1213, allocations: 0 / 0.509 GB, free: 4.309 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003076/0.1216, allocations: 178.7 kB / 0.5092 GB, free: 4.109 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/0.1216, allocations: 81.05 kB / 0.5093 GB, free: 4.012 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002557/0.1219, allocations: 175 kB / 0.5094 GB, free: 3.832 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.1219, allocations: 29.7 kB / 0.5095 GB, free: 3.797 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.559e-05/0.122, allocations: 119.9 kB / 0.5096 GB, free: 3.676 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.677e-05/0.1221, allocations: 11.91 kB / 0.5096 GB, free: 3.664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.738e-05/0.1221, allocations: 33.7 kB / 0.5096 GB, free: 3.625 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.1223, allocations: 322.8 kB / 0.5099 GB, free: 3.301 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.424e-05/0.1224, allocations: 45.69 kB / 0.51 GB, free: 3.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.1225, allocations: 85.98 kB / 0.5101 GB, free: 3.145 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.1226, allocations: 131.6 kB / 0.5102 GB, free: 2.988 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1226, allocations: 0 / 0.5102 GB, free: 2.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002754/0.1229, allocations: 172.9 kB / 0.5104 GB, free: 2.801 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.717e-05/0.1229, allocations: 33.69 kB / 0.5104 GB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.1229, allocations: 8.062 kB / 0.5104 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.123, allocations: 4 kB / 0.5104 GB, free: 2.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.985e-05/0.123, allocations: 16.11 kB / 0.5104 GB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.123, allocations: 7.922 kB / 0.5104 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.578e-05/0.1231, allocations: 11.89 kB / 0.5104 GB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.1231, allocations: 4 kB / 0.5104 GB, free: 2.711 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 (T1.firingCon,T1.fire_,T1.activation.NoTokens,T1.activation.active,T1.fire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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.0001295/0.1232, allocations: 159.4 kB / 0.5106 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.333e-05/0.1233, allocations: 7.953 kB / 0.5106 GB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002379/0.1235, allocations: 151.3 kB / 0.5107 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1235, allocations: 4 kB / 0.5107 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.1235, allocations: 4 kB / 0.5108 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.1235, allocations: 0 / 0.5108 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001742/0.1237, allocations: 156.7 kB / 0.5109 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1237, allocations: 0 / 0.5109 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.463e-05/0.1237, allocations: 7.938 kB / 0.5109 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1237, allocations: 0 / 0.5109 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.1237, allocations: 11.92 kB / 0.5109 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1237, allocations: 4 kB / 0.5109 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1237, allocations: 0 / 0.5109 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001872/0.1239, allocations: 152.7 kB / 0.5111 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.701e-05/0.1239, allocations: 15.84 kB / 0.5111 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/0.124, allocations: 11.94 kB / 0.5111 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.177e-05/0.124, allocations: 4 kB / 0.5111 GB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.965e-05/0.124, allocations: 7.984 kB / 0.5111 GB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.124, allocations: 0 / 0.5111 GB, free: 1.914 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000109/0.1241, allocations: 123.8 kB / 0.5112 GB, free: 1.793 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1241, allocations: 0 / 0.5112 GB, free: 1.793 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002364/0.1244, allocations: 23.98 kB / 0.5112 GB, free: 1.77 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (T1.fire,T1.activation.active,T1.activation.NoTokens) * Number of discrete states: 2 (T1.activation.active,T1.activation.NoTokens) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0005662/0.1249, allocations: 0.7101 MB / 0.5119 GB, free: 1.016 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002363/0.1252, allocations: 170.9 kB / 0.5121 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1252, allocations: 4.062 kB / 0.5121 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.667e-05/0.1253, allocations: 97.09 kB / 0.5122 GB, free: 0.707 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002429/0.1255, allocations: 11.98 kB / 0.5122 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.192/0.3175, allocations: 1.734 MB / 0.5139 GB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.188e-05/0.3176, allocations: 84.48 kB / 0.514 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001255/0.3177, allocations: 43.7 kB / 0.514 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.159e-05/0.3178, allocations: 36.39 kB / 0.5141 GB, free: 14.32 MB / 382.1 MB Notification: Performance of SimCode: time 1.041e-06/0.3178, allocations: 0.9062 kB / 0.5141 GB, free: 14.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02837/0.3462, allocations: 2.891 MB / 0.5169 GB, free: 13.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.57, allocations: 4 kB / 0.5169 GB, free: 13.53 MB / 382.1 MB " [Timeout remaining time 648] (rm -f PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; mkfifo PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ConTest.SingleTC.pipe >> ../files/PNlib_PNlib.Examples.ConTest.SingleTC.sim & python3 -m fmpy simulate --output-file PNlib_PNlib.Examples.ConTest.SingleTC_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_ConTest_SingleTC.fmu > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.csv","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.SingleTC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.ConTest.SingleTC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable T1.fire in file PNlib_PNlib.Examples.ConTest.SingleTC_res.csv. Warning: Get data of variable T1.fire from file PNlib_PNlib.Examples.ConTest.SingleTC_res.csv failed! Error: Could not read variable T1.instantaneousSpeed in file PNlib_PNlib.Examples.ConTest.SingleTC_res.csv. Warning: Get data of variable T1.instantaneousSpeed from file PNlib_PNlib.Examples.ConTest.SingleTC_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.41608523298055]