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.001315/0.001315, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001501/0.001501, allocations: 213.6 kB / 22.25 MB, free: 5.262 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.439/1.439, allocations: 230.6 MB / 256 MB, free: 7.797 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.08427/0.08427, allocations: 16.96 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.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.002073/0.002073, allocations: 71.89 kB / 459.7 MB, free: 2.133 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1159, allocations: 57.63 MB / 0.5052 GB, free: 8.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002375/0.1183, allocations: 1.006 MB / 0.5062 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009005/0.1192, allocations: 383.1 kB / 0.5065 GB, free: 7.043 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.463e-05/0.1192, allocations: 0 / 0.5065 GB, free: 7.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002012/0.1194, allocations: 55.64 kB / 0.5066 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002797/0.1197, allocations: 51.66 kB / 0.5066 GB, free: 6.938 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002597/0.12, allocations: 123.8 kB / 0.5067 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003732/0.1204, allocations: 307.4 kB / 0.507 GB, free: 6.516 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.884e-05/0.1204, allocations: 12.59 kB / 0.507 GB, free: 6.504 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001644/0.1206, allocations: 147.6 kB / 0.5072 GB, free: 6.359 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001091/0.1207, allocations: 55.52 kB / 0.5072 GB, free: 6.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.9e-05/0.1207, allocations: 4 kB / 0.5072 GB, free: 6.301 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000147/0.1209, allocations: 67.88 kB / 0.5073 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.45e-05/0.1209, allocations: 19.86 kB / 0.5073 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.099e-05/0.121, allocations: 27.81 kB / 0.5074 GB, free: 6.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002313/0.1212, allocations: 127.6 kB / 0.5075 GB, free: 6.062 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1212, allocations: 0 / 0.5075 GB, free: 6.062 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1212, allocations: 0 / 0.5075 GB, free: 6.062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.1212, allocations: 3.938 kB / 0.5075 GB, free: 6.059 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.0005365/0.1218, allocations: 359.5 kB / 0.5078 GB, free: 5.672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.1218, allocations: 8.031 kB / 0.5078 GB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.749e-05/0.1219, allocations: 38.75 kB / 0.5079 GB, free: 5.617 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.634e-05/0.1219, allocations: 12.84 kB / 0.5079 GB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002173/0.1221, allocations: 146.8 kB / 0.508 GB, free: 5.438 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.1222, allocations: 16.12 kB / 0.508 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.43e-05/0.1222, allocations: 4 kB / 0.508 GB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002429/0.1224, allocations: 143.6 kB / 0.5082 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1224, allocations: 0 / 0.5082 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.1224, allocations: 0 / 0.5082 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.1224, allocations: 7.984 kB / 0.5082 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.1226, allocations: 77.61 kB / 0.5083 GB, free: 5.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007626/0.1233, allocations: 0.6293 MB / 0.5089 GB, free: 4.473 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.1235, allocations: 80.27 kB / 0.5089 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.976e-05/0.1236, allocations: 42.69 kB / 0.509 GB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/0.1236, allocations: 11.98 kB / 0.509 GB, free: 4.316 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.1236, allocations: 30.56 kB / 0.509 GB, free: 4.277 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.1236, allocations: 0 / 0.509 GB, free: 4.277 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002906/0.1239, allocations: 170.7 kB / 0.5092 GB, free: 4.086 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.124, allocations: 81.11 kB / 0.5093 GB, free: 3.988 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/0.1242, allocations: 178.9 kB / 0.5094 GB, free: 3.805 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.1242, allocations: 25.7 kB / 0.5095 GB, free: 3.773 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.969e-05/0.1243, allocations: 123.9 kB / 0.5096 GB, free: 3.648 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.569e-05/0.1243, allocations: 11.89 kB / 0.5096 GB, free: 3.637 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.558e-05/0.1243, allocations: 33.7 kB / 0.5096 GB, free: 3.598 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1245, allocations: 326.8 kB / 0.5099 GB, free: 3.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.2e-05/0.1246, allocations: 49.69 kB / 0.51 GB, free: 3.215 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.16e-05/0.1247, allocations: 86.08 kB / 0.5101 GB, free: 3.109 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.1248, allocations: 127.6 kB / 0.5102 GB, free: 2.957 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1248, allocations: 4 kB / 0.5102 GB, free: 2.953 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002352/0.125, allocations: 168.9 kB / 0.5104 GB, free: 2.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/0.1251, allocations: 37.83 kB / 0.5104 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1251, allocations: 3.938 kB / 0.5104 GB, free: 2.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.1251, allocations: 4 kB / 0.5104 GB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.299e-05/0.1252, allocations: 15.98 kB / 0.5104 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.1252, allocations: 4 kB / 0.5104 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.596e-05/0.1252, allocations: 11.89 kB / 0.5104 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.1252, allocations: 4 kB / 0.5104 GB, free: 2.684 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.0001412/0.1254, allocations: 159.4 kB / 0.5106 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.422e-05/0.1254, allocations: 11.95 kB / 0.5106 GB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002305/0.1256, allocations: 147.3 kB / 0.5107 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.1256, allocations: 4 kB / 0.5107 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1256, allocations: 0 / 0.5107 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1256, allocations: 0 / 0.5107 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001619/0.1258, allocations: 160.7 kB / 0.5109 GB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1258, allocations: 0 / 0.5109 GB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.408e-05/0.1258, allocations: 8.188 kB / 0.5109 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1258, allocations: 0 / 0.5109 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.1259, allocations: 11.94 kB / 0.5109 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.1259, allocations: 0 / 0.5109 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1259, allocations: 0 / 0.5109 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001991/0.1261, allocations: 156.5 kB / 0.5111 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.141e-05/0.1261, allocations: 19.84 kB / 0.5111 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.376e-05/0.1261, allocations: 7.938 kB / 0.5111 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.046e-05/0.1261, allocations: 0 / 0.5111 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.753e-05/0.1261, allocations: 8 kB / 0.5111 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.1262, allocations: 0 / 0.5111 GB, free: 1.891 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001135/0.1263, allocations: 123.8 kB / 0.5112 GB, free: 1.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1263, allocations: 0 / 0.5112 GB, free: 1.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002352/0.1265, allocations: 28 kB / 0.5112 GB, free: 1.742 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.0005492/0.127, allocations: 0.7061 MB / 0.5119 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002364/0.1273, allocations: 170.7 kB / 0.5121 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1273, allocations: 3.938 kB / 0.5121 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.711e-05/0.1274, allocations: 101.2 kB / 0.5122 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.1276, allocations: 16.08 kB / 0.5122 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1985/0.3261, allocations: 1.736 MB / 0.5139 GB, free: 13.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.98e-05/0.3262, allocations: 85.25 kB / 0.514 GB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001174/0.3263, allocations: 43.23 kB / 0.514 GB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.545e-05/0.3264, allocations: 36.14 kB / 0.5141 GB, free: 13.9 MB / 382.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3264, allocations: 0 / 0.5141 GB, free: 13.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02772/0.3541, allocations: 2.89 MB / 0.5169 GB, free: 13.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.43, allocations: 12.22 kB / 0.5169 GB, free: 13.1 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 & /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/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: 14.08037329185754]