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.001889/0.001889, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.002279/0.002279, allocations: 219.1 kB / 23.03 MB, free: 4.922 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.489/1.489, allocations: 230.6 MB / 256.8 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.08805/0.08805, allocations: 16.94 MB / 330.2 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",fmuType="cs",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.002005/0.002005, allocations: 63.89 kB / 460.5 MB, free: 2.145 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1162, allocations: 57.63 MB / 0.5059 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002579/0.1187, allocations: 1.002 MB / 0.5069 GB, free: 7.414 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009686/0.1197, allocations: 379.1 kB / 0.5073 GB, free: 7.043 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.1199, allocations: 4 kB / 0.5073 GB, free: 7.039 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.1201, allocations: 51.64 kB / 0.5073 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003387/0.1204, allocations: 47.66 kB / 0.5074 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003252/0.1207, allocations: 131.8 kB / 0.5075 GB, free: 6.812 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004592/0.1212, allocations: 307.4 kB / 0.5078 GB, free: 6.512 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.615e-05/0.1213, allocations: 12.59 kB / 0.5078 GB, free: 6.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002334/0.1215, allocations: 151.6 kB / 0.508 GB, free: 6.352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.1216, allocations: 51.52 kB / 0.508 GB, free: 6.301 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.629e-05/0.1217, allocations: 4 kB / 0.508 GB, free: 6.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002001/0.1219, allocations: 67.88 kB / 0.5081 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.832e-05/0.122, allocations: 23.86 kB / 0.5081 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.592e-05/0.122, allocations: 31.8 kB / 0.5081 GB, free: 6.176 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002707/0.1223, allocations: 123.6 kB / 0.5082 GB, free: 6.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.1223, allocations: 4 kB / 0.5082 GB, free: 6.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1223, allocations: 0 / 0.5082 GB, free: 6.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.1223, allocations: 0 / 0.5082 GB, free: 6.051 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.0005445/0.1229, allocations: 355.5 kB / 0.5086 GB, free: 5.668 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.1229, allocations: 8.031 kB / 0.5086 GB, free: 5.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.98e-05/0.1229, allocations: 8.172 kB / 0.5086 GB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.145e-05/0.123, allocations: 42.73 kB / 0.5086 GB, free: 5.602 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.327e-05/0.123, allocations: 12.84 kB / 0.5087 GB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002112/0.1232, allocations: 145.6 kB / 0.5088 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.1232, allocations: 15.94 kB / 0.5088 GB, free: 5.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.224e-05/0.1233, allocations: 4 kB / 0.5088 GB, free: 5.406 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002401/0.1235, allocations: 139.6 kB / 0.5089 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.1235, allocations: 0 / 0.5089 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.1235, allocations: 0 / 0.5089 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.1235, allocations: 8 kB / 0.509 GB, free: 5.234 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.1237, allocations: 81.59 kB / 0.509 GB, free: 5.148 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008051/0.1245, allocations: 0.6331 MB / 0.5096 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002115/0.1247, allocations: 80.27 kB / 0.5097 GB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.068e-05/0.1247, allocations: 46.67 kB / 0.5098 GB, free: 4.309 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.1248, allocations: 4 kB / 0.5098 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.1248, allocations: 34.56 kB / 0.5098 GB, free: 4.262 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.233e-06/0.1248, allocations: 0 / 0.5098 GB, free: 4.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003181/0.1251, allocations: 170.7 kB / 0.51 GB, free: 4.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.686e-05/0.1252, allocations: 85.09 kB / 0.5101 GB, free: 3.969 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.1254, allocations: 175 kB / 0.5102 GB, free: 3.789 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.1254, allocations: 25.7 kB / 0.5102 GB, free: 3.758 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.408e-05/0.1255, allocations: 116 kB / 0.5104 GB, free: 3.641 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.044e-05/0.1255, allocations: 19.84 kB / 0.5104 GB, free: 3.621 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.565e-05/0.1256, allocations: 33.7 kB / 0.5104 GB, free: 3.582 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1257, allocations: 326.8 kB / 0.5107 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.003e-05/0.1258, allocations: 49.69 kB / 0.5108 GB, free: 3.199 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.784e-05/0.1259, allocations: 82.09 kB / 0.5108 GB, free: 3.098 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001468/0.126, allocations: 131.5 kB / 0.511 GB, free: 2.941 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.126, allocations: 0 / 0.511 GB, free: 2.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002392/0.1263, allocations: 173 kB / 0.5111 GB, free: 2.754 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.152e-05/0.1263, allocations: 41.62 kB / 0.5112 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1263, allocations: 0 / 0.5112 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.1263, allocations: 0 / 0.5112 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.291e-05/0.1264, allocations: 16 kB / 0.5112 GB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.1264, allocations: 4 kB / 0.5112 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.625e-05/0.1264, allocations: 11.89 kB / 0.5112 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.678e-05/0.1265, allocations: 7.984 kB / 0.5112 GB, free: 2.668 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.0001306/0.1266, allocations: 151.5 kB / 0.5114 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.956e-05/0.1266, allocations: 15.84 kB / 0.5114 GB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002173/0.1268, allocations: 151.4 kB / 0.5115 GB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.1268, allocations: 3.938 kB / 0.5115 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1268, allocations: 0 / 0.5115 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.1268, allocations: 0 / 0.5115 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001532/0.127, allocations: 152.7 kB / 0.5117 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.127, allocations: 4 kB / 0.5117 GB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.289e-05/0.127, allocations: 3.938 kB / 0.5117 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.88e-06/0.127, allocations: 4.188 kB / 0.5117 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.127, allocations: 4 kB / 0.5117 GB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.127, allocations: 4 kB / 0.5117 GB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.127, allocations: 0 / 0.5117 GB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.1272, allocations: 168.4 kB / 0.5118 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.773e-05/0.1272, allocations: 7.953 kB / 0.5118 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.343e-05/0.1273, allocations: 7.938 kB / 0.5119 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.023e-05/0.1273, allocations: 0 / 0.5119 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.929e-05/0.1273, allocations: 7.984 kB / 0.5119 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.1273, allocations: 4 kB / 0.5119 GB, free: 1.879 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001013/0.1274, allocations: 123.8 kB / 0.512 GB, free: 1.758 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1274, allocations: 0 / 0.512 GB, free: 1.758 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002319/0.1277, allocations: 23.94 kB / 0.512 GB, free: 1.734 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.0005417/0.1282, allocations: 0.7216 MB / 0.5127 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002398/0.1284, allocations: 174.7 kB / 0.5129 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1284, allocations: 3.938 kB / 0.5129 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.851e-05/0.1285, allocations: 93.11 kB / 0.513 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.1288, allocations: 16.2 kB / 0.513 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.21/0.3387, allocations: 1.734 MB / 0.5147 GB, free: 14.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.721e-05/0.3388, allocations: 85.59 kB / 0.5148 GB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001319/0.3389, allocations: 44.52 kB / 0.5148 GB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.873e-05/0.339, allocations: 36.48 kB / 0.5148 GB, free: 14.28 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.339, allocations: 0 / 0.5148 GB, free: 14.28 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02178/0.3608, allocations: 2.571 MB / 0.5174 GB, free: 13.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.25, allocations: 1.406 kB / 0.5174 GB, free: 13.88 MB / 382.1 MB " [Timeout remaining time 649] (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.120070997974835]