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.00124/0.00124, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001504/0.001504, allocations: 214.8 kB / 22.25 MB, free: 5.129 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.49/1.49, allocations: 230.6 MB / 256 MB, free: 8 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.1129/0.1129, allocations: 16.94 MB / 329.4 MB, free: 2.293 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.002126/0.002126, allocations: 71.89 kB / 459.8 MB, free: 2.324 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1298, allocations: 57.63 MB / 0.5053 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002458/0.1323, allocations: 1.075 MB / 0.5063 GB, free: 7.535 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009038/0.1332, allocations: 391.1 kB / 0.5067 GB, free: 7.152 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.335e-05/0.1333, allocations: 7.938 kB / 0.5067 GB, free: 7.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001772/0.1335, allocations: 47.7 kB / 0.5067 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002553/0.1337, allocations: 55.64 kB / 0.5068 GB, free: 7.043 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003467/0.1341, allocations: 127.8 kB / 0.5069 GB, free: 6.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003755/0.1345, allocations: 311.3 kB / 0.5072 GB, free: 6.613 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.322e-05/0.1345, allocations: 8.594 kB / 0.5072 GB, free: 6.605 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.1347, allocations: 155.5 kB / 0.5074 GB, free: 6.453 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.1348, allocations: 55.53 kB / 0.5074 GB, free: 6.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.692e-05/0.1348, allocations: 4 kB / 0.5074 GB, free: 6.395 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001509/0.135, allocations: 67.92 kB / 0.5075 GB, free: 6.328 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.601e-05/0.135, allocations: 27.8 kB / 0.5075 GB, free: 6.301 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.67e-05/0.1351, allocations: 35.69 kB / 0.5075 GB, free: 6.266 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000265/0.1354, allocations: 115.8 kB / 0.5077 GB, free: 6.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1354, allocations: 0 / 0.5077 GB, free: 6.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1354, allocations: 0 / 0.5077 GB, free: 6.152 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.1354, allocations: 0 / 0.5077 GB, free: 6.152 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.0005259/0.1359, allocations: 363.4 kB / 0.508 GB, free: 5.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.1359, allocations: 12.03 kB / 0.508 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.081e-05/0.136, allocations: 38.75 kB / 0.508 GB, free: 5.703 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.551e-05/0.136, allocations: 16.84 kB / 0.5081 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001953/0.1362, allocations: 142.9 kB / 0.5082 GB, free: 5.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.1362, allocations: 4.125 kB / 0.5082 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.193e-05/0.1363, allocations: 8 kB / 0.5082 GB, free: 5.512 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002118/0.1365, allocations: 106 kB / 0.5083 GB, free: 5.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.1365, allocations: 3.938 kB / 0.5083 GB, free: 5.383 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.1365, allocations: 7.984 kB / 0.5083 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.1365, allocations: 4 kB / 0.5083 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001014/0.1366, allocations: 43.92 kB / 0.5084 GB, free: 5.328 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008086/0.1374, allocations: 0.6448 MB / 0.509 GB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001794/0.1376, allocations: 42.56 kB / 0.509 GB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.259e-05/0.1377, allocations: 25.03 kB / 0.5091 GB, free: 4.547 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.1377, allocations: 112 / 0.5091 GB, free: 4.547 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.1377, allocations: 38.5 kB / 0.5091 GB, free: 4.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 8.91e-07/0.1377, allocations: 0 / 0.5091 GB, free: 4.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002987/0.138, allocations: 115.2 kB / 0.5092 GB, free: 4.375 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.138, allocations: 85.11 kB / 0.5093 GB, free: 4.273 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002034/0.1382, allocations: 175 kB / 0.5095 GB, free: 4.094 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.1383, allocations: 25.7 kB / 0.5095 GB, free: 4.062 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.967e-05/0.1384, allocations: 116 kB / 0.5096 GB, free: 3.945 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.804e-05/0.1384, allocations: 15.86 kB / 0.5096 GB, free: 3.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.969e-05/0.1385, allocations: 33.7 kB / 0.5096 GB, free: 3.891 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1386, allocations: 322.8 kB / 0.5099 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.82e-05/0.1387, allocations: 23.98 kB / 0.51 GB, free: 3.543 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.69e-05/0.1387, allocations: 52.28 kB / 0.51 GB, free: 3.477 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.1389, allocations: 123.6 kB / 0.5101 GB, free: 3.328 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1389, allocations: 4 kB / 0.5101 GB, free: 3.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002131/0.1391, allocations: 143.2 kB / 0.5103 GB, free: 3.172 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.634e-05/0.1392, allocations: 41.62 kB / 0.5103 GB, free: 3.125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1392, allocations: 3.938 kB / 0.5103 GB, free: 3.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.1392, allocations: 4 kB / 0.5103 GB, free: 3.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.648e-05/0.1392, allocations: 11.94 kB / 0.5103 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.1392, allocations: 4 kB / 0.5103 GB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.2e-05/0.1393, allocations: 11.89 kB / 0.5104 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.1393, allocations: 12.11 kB / 0.5104 GB, free: 3.078 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.000177/0.1395, allocations: 147.5 kB / 0.5105 GB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.997e-05/0.1395, allocations: 15.91 kB / 0.5105 GB, free: 2.902 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000201/0.1397, allocations: 129.8 kB / 0.5106 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.1397, allocations: 0 / 0.5106 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1397, allocations: 0 / 0.5106 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.1397, allocations: 0 / 0.5106 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002474/0.14, allocations: 156.7 kB / 0.5108 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.14, allocations: 7.938 kB / 0.5108 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.998e-05/0.14, allocations: 8 kB / 0.5108 GB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.14, allocations: 0 / 0.5108 GB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.258e-06/0.14, allocations: 7.938 kB / 0.5108 GB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.14, allocations: 0 / 0.5108 GB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.14, allocations: 0 / 0.5108 GB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002878/0.1403, allocations: 130.7 kB / 0.5109 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.728e-05/0.1403, allocations: 11.89 kB / 0.511 GB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/0.1403, allocations: 7.938 kB / 0.511 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.886e-05/0.1404, allocations: 4 kB / 0.511 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.594e-05/0.1404, allocations: 4 kB / 0.511 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.1404, allocations: 0 / 0.511 GB, free: 2.355 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001078/0.1405, allocations: 131.8 kB / 0.5111 GB, free: 2.227 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1405, allocations: 0 / 0.5111 GB, free: 2.227 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002184/0.1407, allocations: 27.94 kB / 0.5111 GB, free: 2.199 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.000543/0.1413, allocations: 0.6811 MB / 0.5118 GB, free: 1.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000215/0.1415, allocations: 111.4 kB / 0.5119 GB, free: 1.359 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1415, allocations: 0 / 0.5119 GB, free: 1.359 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.27e-05/0.1415, allocations: 83.31 kB / 0.512 GB, free: 1.266 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002296/0.1418, allocations: 11.98 kB / 0.512 GB, free: 1.254 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.227/0.3687, allocations: 1.595 MB / 0.5135 GB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001375/0.3689, allocations: 0.7003 MB / 0.5142 GB, free: 14.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001578/0.369, allocations: 45.33 kB / 0.5143 GB, free: 14.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.132e-05/0.3691, allocations: 36.33 kB / 0.5143 GB, free: 14.01 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3691, allocations: 0 / 0.5143 GB, free: 14.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05738/0.4265, allocations: 2.514 MB / 0.5168 GB, free: 13.69 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.53, allocations: 17.98 kB / 0.5168 GB, free: 13.68 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.561227962003613]