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.002038/0.002038, allocations: 107.6 kB / 16.45 MB, free: 6.453 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.001637/0.001637, allocations: 215.2 kB / 19.43 MB, free: 3.625 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 / 252.8 MB, free: 8.961 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.08189/0.08189, allocations: 16.96 MB / 325.8 MB, free: 3.492 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.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.002167/0.002167, allocations: 67.89 kB / 454.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1141, allocations: 57.58 MB / 0.5002 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.003036/0.1172, allocations: 1.075 MB / 0.5012 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.1183, allocations: 395 kB / 0.5016 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002133/0.1185, allocations: 4 kB / 0.5016 GB, free: 9.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002605/0.1188, allocations: 55.62 kB / 0.5016 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000375/0.1192, allocations: 39.73 kB / 0.5017 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000345/0.1195, allocations: 123.8 kB / 0.5018 GB, free: 9.359 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004715/0.12, allocations: 303.3 kB / 0.5021 GB, free: 9.062 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.466e-05/0.1201, allocations: 20.41 kB / 0.5021 GB, free: 9.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.1203, allocations: 151.6 kB / 0.5023 GB, free: 8.891 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001188/0.1204, allocations: 55.52 kB / 0.5023 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/0.1204, allocations: 0 / 0.5023 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.1206, allocations: 63.89 kB / 0.5024 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.329e-05/0.1206, allocations: 23.8 kB / 0.5024 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.721e-05/0.1207, allocations: 35.73 kB / 0.5024 GB, free: 8.715 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002642/0.121, allocations: 115.8 kB / 0.5025 GB, free: 8.602 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.121, allocations: 0 / 0.5025 GB, free: 8.602 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.121, allocations: 0 / 0.5025 GB, free: 8.602 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.121, allocations: 0 / 0.5025 GB, free: 8.602 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.0006255/0.1216, allocations: 432.5 kB / 0.5029 GB, free: 8.125 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.1217, allocations: 16.02 kB / 0.503 GB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.602e-05/0.1217, allocations: 42.69 kB / 0.503 GB, free: 8.059 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.228e-05/0.1218, allocations: 12.84 kB / 0.503 GB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002585/0.122, allocations: 200.8 kB / 0.5032 GB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/0.122, allocations: 12.12 kB / 0.5032 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.998e-05/0.1221, allocations: 4 kB / 0.5032 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002453/0.1223, allocations: 105.9 kB / 0.5033 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.1223, allocations: 0 / 0.5033 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.1223, allocations: 4 kB / 0.5033 GB, free: 7.668 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.1223, allocations: 7.984 kB / 0.5033 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.1225, allocations: 43.92 kB / 0.5034 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.1236, allocations: 0.8198 MB / 0.5042 GB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002335/0.1239, allocations: 46.56 kB / 0.5042 GB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.495e-05/0.1239, allocations: 17.05 kB / 0.5042 GB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.1239, allocations: 0 / 0.5042 GB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.177e-05/0.124, allocations: 46.44 kB / 0.5043 GB, free: 6.566 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 8.42e-07/0.124, allocations: 112 / 0.5043 GB, free: 6.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003474/0.1243, allocations: 119.2 kB / 0.5044 GB, free: 6.438 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.794e-05/0.1244, allocations: 85.11 kB / 0.5045 GB, free: 6.336 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002087/0.1246, allocations: 175.1 kB / 0.5046 GB, free: 6.156 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.1246, allocations: 25.7 kB / 0.5047 GB, free: 6.125 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.343e-05/0.1247, allocations: 108 kB / 0.5048 GB, free: 6.016 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.065e-05/0.1248, allocations: 23.8 kB / 0.5048 GB, free: 5.992 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.558e-05/0.1248, allocations: 33.7 kB / 0.5048 GB, free: 5.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.125, allocations: 330.8 kB / 0.5051 GB, free: 5.621 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.329e-05/0.125, allocations: 15.98 kB / 0.5052 GB, free: 5.605 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.513e-05/0.1251, allocations: 56.47 kB / 0.5052 GB, free: 5.535 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/0.1253, allocations: 135.6 kB / 0.5053 GB, free: 5.375 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1253, allocations: 4 kB / 0.5053 GB, free: 5.371 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002395/0.1255, allocations: 131.3 kB / 0.5055 GB, free: 5.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.173e-05/0.1256, allocations: 33.7 kB / 0.5055 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.1256, allocations: 7.875 kB / 0.5055 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.1256, allocations: 4 kB / 0.5055 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.342e-05/0.1257, allocations: 16.11 kB / 0.5055 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.1257, allocations: 4 kB / 0.5055 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.465e-05/0.1257, allocations: 15.89 kB / 0.5055 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.1257, allocations: 4 kB / 0.5055 GB, free: 5.141 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.0001673/0.1259, allocations: 151.5 kB / 0.5057 GB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.515e-05/0.126, allocations: 19.89 kB / 0.5057 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002212/0.1262, allocations: 121.6 kB / 0.5058 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.654e-06/0.1262, allocations: 0 / 0.5058 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1262, allocations: 0 / 0.5058 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1262, allocations: 4 kB / 0.5058 GB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001812/0.1264, allocations: 189.6 kB / 0.506 GB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.1264, allocations: 4 kB / 0.506 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.207e-05/0.1264, allocations: 0 / 0.506 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1264, allocations: 3.938 kB / 0.506 GB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.1264, allocations: 7.938 kB / 0.506 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1264, allocations: 0 / 0.506 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1264, allocations: 0 / 0.506 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000185/0.1266, allocations: 138.7 kB / 0.5062 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.718e-05/0.1267, allocations: 85.05 kB / 0.5062 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.371e-05/0.1267, allocations: 7.938 kB / 0.5062 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.139e-05/0.1267, allocations: 3.938 kB / 0.5063 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.092e-05/0.1267, allocations: 4 kB / 0.5063 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.1267, allocations: 0 / 0.5063 GB, free: 4.293 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001263/0.1269, allocations: 135.8 kB / 0.5064 GB, free: 4.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1269, allocations: 0 / 0.5064 GB, free: 4.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000243/0.1271, allocations: 23.94 kB / 0.5064 GB, free: 4.137 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.0005762/0.1277, allocations: 0.6921 MB / 0.5071 GB, free: 3.406 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002141/0.1279, allocations: 111.3 kB / 0.5072 GB, free: 3.285 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1279, allocations: 0 / 0.5072 GB, free: 3.285 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.182e-05/0.128, allocations: 63.41 kB / 0.5072 GB, free: 3.211 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.1282, allocations: 16.23 kB / 0.5073 GB, free: 3.195 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001914/0.1301, allocations: 1.594 MB / 0.5088 GB, free: 1.492 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.1305, allocations: 0.7041 MB / 0.5095 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00013/0.1306, allocations: 44.31 kB / 0.5096 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.644e-05/0.1307, allocations: 39.36 kB / 0.5096 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1307, allocations: 0 / 0.5096 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2282/0.3589, allocations: 2.334 MB / 0.5119 GB, free: 16.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.122/8.481, allocations: 8.203 kB / 0.5119 GB, free: 16.27 MB / 382.1 MB " [Timeout remaining time 651] (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: 11.28367521893233]