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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002372/0.002372, allocations: 108.9 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002376/0.002376, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.08119/0.08119, allocations: 16.96 MB / 319.6 MB, free: 9.02 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 63.89 kB / 446.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1251, allocations: 56.41 MB / 0.4907 GB, free: 3.309 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002515/0.1276, allocations: 1.079 MB / 0.4918 GB, free: 2.223 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008546/0.1285, allocations: 391.1 kB / 0.4921 GB, free: 1.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.305e-05/0.1286, allocations: 8 kB / 0.4921 GB, free: 1.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.1287, allocations: 43.7 kB / 0.4922 GB, free: 1.789 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002656/0.129, allocations: 51.66 kB / 0.4922 GB, free: 1.738 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002565/0.1293, allocations: 119.8 kB / 0.4923 GB, free: 1.621 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003966/0.1296, allocations: 303.3 kB / 0.4926 GB, free: 1.324 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.14e-05/0.1297, allocations: 16.39 kB / 0.4926 GB, free: 1.305 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001684/0.1299, allocations: 147.6 kB / 0.4928 GB, free: 1.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.13, allocations: 51.53 kB / 0.4928 GB, free: 1.109 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.804e-05/0.13, allocations: 4 kB / 0.4928 GB, free: 1.105 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.1301, allocations: 63.94 kB / 0.4929 GB, free: 1.043 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.254e-05/0.1302, allocations: 35.72 kB / 0.4929 GB, free: 1.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.913e-05/0.1303, allocations: 31.75 kB / 0.493 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002163/0.1305, allocations: 111.8 kB / 0.4931 GB, free: 0.8672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1305, allocations: 0 / 0.4931 GB, free: 0.8672 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1305, allocations: 0 / 0.4931 GB, free: 0.8672 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.1305, allocations: 0 / 0.4931 GB, free: 0.8672 MB / 366.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.000562/0.131, allocations: 440.5 kB / 0.4935 GB, free: 392 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.1311, allocations: 11.89 kB / 0.4935 GB, free: 380 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.052e-05/0.1311, allocations: 42.69 kB / 0.4935 GB, free: 328 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.2e-05/0.1312, allocations: 16.84 kB / 0.4936 GB, free: 312 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002222/0.1314, allocations: 202.6 kB / 0.4937 GB, free: 72 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.1314, allocations: 8.125 kB / 0.4938 GB, free: 64 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.938e-05/0.1314, allocations: 8 kB / 0.4938 GB, free: 56 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000221/0.1317, allocations: 105.9 kB / 0.4939 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.1317, allocations: 0 / 0.4939 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.1317, allocations: 4 kB / 0.4939 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.1317, allocations: 4 kB / 0.4939 GB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/0.1318, allocations: 47.91 kB / 0.4939 GB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008241/0.1326, allocations: 0.8159 MB / 0.4947 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001628/0.1328, allocations: 54.61 kB / 0.4948 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.979e-05/0.1328, allocations: 20.97 kB / 0.4948 GB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.372e-05/0.1328, allocations: 0 / 0.4948 GB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.1329, allocations: 34.56 kB / 0.4948 GB, free: 14.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 9.32e-07/0.1329, allocations: 0 / 0.4948 GB, free: 14.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002651/0.1331, allocations: 123.2 kB / 0.4949 GB, free: 14.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.1332, allocations: 81.11 kB / 0.495 GB, free: 14.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.1333, allocations: 170.4 kB / 0.4952 GB, free: 14.42 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.1334, allocations: 25.7 kB / 0.4952 GB, free: 14.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.467e-05/0.1334, allocations: 116.1 kB / 0.4953 GB, free: 14.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.751e-05/0.1335, allocations: 19.78 kB / 0.4953 GB, free: 14.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.235e-05/0.1335, allocations: 37.66 kB / 0.4954 GB, free: 14.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1337, allocations: 326.8 kB / 0.4957 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.488e-05/0.1337, allocations: 19.98 kB / 0.4957 GB, free: 13.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.864e-05/0.1338, allocations: 56.28 kB / 0.4958 GB, free: 13.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001412/0.1339, allocations: 127.6 kB / 0.4959 GB, free: 13.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.1339, allocations: 4 kB / 0.4959 GB, free: 13.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001964/0.1341, allocations: 135.3 kB / 0.496 GB, free: 13.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.949e-05/0.1342, allocations: 36.5 kB / 0.496 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.1342, allocations: 7.938 kB / 0.496 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1342, allocations: 0 / 0.496 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.836e-05/0.1342, allocations: 19.94 kB / 0.4961 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.1343, allocations: 3.984 kB / 0.4961 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.62e-05/0.1343, allocations: 11.89 kB / 0.4961 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.1343, allocations: 8 kB / 0.4961 GB, free: 13.4 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.0001197/0.1344, allocations: 151.7 kB / 0.4962 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.471e-05/0.1345, allocations: 15.84 kB / 0.4963 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001987/0.1347, allocations: 121.8 kB / 0.4964 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1347, allocations: 0 / 0.4964 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1347, allocations: 4 kB / 0.4964 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1347, allocations: 7.984 kB / 0.4964 GB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.1348, allocations: 189.6 kB / 0.4966 GB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1348, allocations: 0 / 0.4966 GB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.113e-05/0.1349, allocations: 4 kB / 0.4966 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.1349, allocations: 4 kB / 0.4966 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.1349, allocations: 3.938 kB / 0.4966 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.1349, allocations: 3.984 kB / 0.4966 GB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.1349, allocations: 0 / 0.4966 GB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001623/0.135, allocations: 130.7 kB / 0.4967 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.67e-05/0.1351, allocations: 92.95 kB / 0.4968 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.083e-05/0.1351, allocations: 3.938 kB / 0.4968 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.324e-05/0.1351, allocations: 4 kB / 0.4968 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.282e-05/0.1352, allocations: 11.98 kB / 0.4968 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-06/0.1352, allocations: 4 kB / 0.4968 GB, free: 12.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001064/0.1353, allocations: 123.8 kB / 0.4969 GB, free: 12.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1353, allocations: 0 / 0.4969 GB, free: 12.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002259/0.1355, allocations: 23.94 kB / 0.497 GB, free: 12.4 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.0005259/0.136, allocations: 0.6804 MB / 0.4976 GB, free: 11.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001977/0.1362, allocations: 107.3 kB / 0.4977 GB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1362, allocations: 0 / 0.4977 GB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.01e-05/0.1363, allocations: 75.33 kB / 0.4978 GB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.1366, allocations: 8 kB / 0.4978 GB, free: 11.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001767/0.1383, allocations: 1.589 MB / 0.4993 GB, free: 9.773 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.1387, allocations: 0.7 MB / 0.5 GB, free: 9.047 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001117/0.1388, allocations: 52.53 kB / 0.5001 GB, free: 8.996 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.613e-05/0.1389, allocations: 43.41 kB / 0.5001 GB, free: 8.953 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1389, allocations: 0 / 0.5001 GB, free: 8.953 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0251/0.164, allocations: 2.342 MB / 0.5024 GB, free: 6.664 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.901/8.065, allocations: 10.78 kB / 0.5024 GB, free: 6.656 MB / 382.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PNlib_PNlib.Examples.ConTest.SingleTC_res.mat --tempDir=temp_PNlib_PNlib_Examples_ConTest_SingleTC_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PNlib_PNlib_Examples_ConTest_SingleTC.fmu > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.SingleTC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.ConTest.SingleTC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.040351508650929]