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.001691/0.001691, 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.002198/0.002198, allocations: 218 kB / 22.26 MB, free: 5.125 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 / 256 MB, free: 7.984 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.08451/0.08451, allocations: 16.93 MB / 329.4 MB, free: 2.277 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.002139/0.002139, allocations: 67.91 kB / 459.8 MB, free: 2.312 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1065, allocations: 57.63 MB / 0.5053 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002199/0.1087, allocations: 1.067 MB / 0.5063 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008125/0.1095, allocations: 391.1 kB / 0.5067 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.916e-05/0.1095, allocations: 8 kB / 0.5067 GB, free: 7.129 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.1097, allocations: 55.62 kB / 0.5067 GB, free: 7.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00024/0.1099, allocations: 47.66 kB / 0.5068 GB, free: 7.027 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002377/0.1102, allocations: 127.8 kB / 0.5069 GB, free: 6.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003587/0.1105, allocations: 311.3 kB / 0.5072 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.762e-05/0.1106, allocations: 12.59 kB / 0.5072 GB, free: 6.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.1108, allocations: 147.6 kB / 0.5074 GB, free: 6.441 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.049e-05/0.1108, allocations: 55.58 kB / 0.5074 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.1109, allocations: 0 / 0.5074 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.111, allocations: 71.88 kB / 0.5075 GB, free: 6.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.051e-05/0.1111, allocations: 31.78 kB / 0.5075 GB, free: 6.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.526e-05/0.1111, allocations: 27.75 kB / 0.5075 GB, free: 6.258 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002129/0.1113, allocations: 119.8 kB / 0.5076 GB, free: 6.141 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.1113, allocations: 4 kB / 0.5076 GB, free: 6.137 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1114, allocations: 0 / 0.5076 GB, free: 6.137 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.431e-06/0.1114, allocations: 0 / 0.5076 GB, free: 6.137 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.0004851/0.1118, allocations: 363.4 kB / 0.508 GB, free: 5.746 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.1119, allocations: 8.031 kB / 0.508 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.59e-05/0.1119, allocations: 42.75 kB / 0.508 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.877e-05/0.112, allocations: 20.78 kB / 0.5081 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001821/0.1121, allocations: 140.4 kB / 0.5082 GB, free: 5.508 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.1122, allocations: 8.125 kB / 0.5082 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.941e-05/0.1122, allocations: 8 kB / 0.5082 GB, free: 5.492 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001935/0.1124, allocations: 105.9 kB / 0.5083 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.1124, allocations: 4 kB / 0.5083 GB, free: 5.363 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.1124, allocations: 4 kB / 0.5083 GB, free: 5.359 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1124, allocations: 0 / 0.5083 GB, free: 5.359 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.1125, allocations: 47.91 kB / 0.5084 GB, free: 5.312 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007452/0.1133, allocations: 0.6409 MB / 0.509 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001821/0.1134, allocations: 54.56 kB / 0.509 GB, free: 4.551 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.082e-05/0.1135, allocations: 17.09 kB / 0.5091 GB, free: 4.531 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.405e-05/0.1135, allocations: 3.938 kB / 0.5091 GB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.1135, allocations: 30.56 kB / 0.5091 GB, free: 4.488 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 3.667e-06/0.1135, allocations: 3.984 kB / 0.5091 GB, free: 4.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002787/0.1138, allocations: 119.3 kB / 0.5092 GB, free: 4.355 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.1139, allocations: 85.05 kB / 0.5093 GB, free: 4.254 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.114, allocations: 175 kB / 0.5095 GB, free: 4.074 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.114, allocations: 33.7 kB / 0.5095 GB, free: 4.035 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.133e-05/0.1141, allocations: 112 kB / 0.5096 GB, free: 3.922 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.465e-05/0.1141, allocations: 19.84 kB / 0.5096 GB, free: 3.902 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.859e-05/0.1142, allocations: 33.7 kB / 0.5096 GB, free: 3.863 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1144, allocations: 318.8 kB / 0.51 GB, free: 3.543 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.197e-05/0.1144, allocations: 23.98 kB / 0.51 GB, free: 3.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.767e-05/0.1145, allocations: 52.28 kB / 0.51 GB, free: 3.453 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.1146, allocations: 127.6 kB / 0.5101 GB, free: 3.301 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1146, allocations: 4 kB / 0.5102 GB, free: 3.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002148/0.1148, allocations: 139.2 kB / 0.5103 GB, free: 3.148 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/0.1149, allocations: 33.7 kB / 0.5103 GB, free: 3.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.1149, allocations: 3.938 kB / 0.5103 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.1149, allocations: 0 / 0.5103 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.741e-05/0.115, allocations: 15.98 kB / 0.5103 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.115, allocations: 4 kB / 0.5103 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.258e-05/0.115, allocations: 11.89 kB / 0.5104 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.115, allocations: 8.125 kB / 0.5104 GB, free: 3.066 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.0001358/0.1152, allocations: 155.5 kB / 0.5105 GB, free: 2.898 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.683e-05/0.1152, allocations: 11.91 kB / 0.5105 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002093/0.1154, allocations: 125.5 kB / 0.5106 GB, free: 2.742 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1154, allocations: 4 kB / 0.5106 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.1154, allocations: 256 / 0.5106 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1154, allocations: 0 / 0.5106 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.1156, allocations: 168.6 kB / 0.5108 GB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1156, allocations: 0 / 0.5108 GB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.403e-05/0.1156, allocations: 11.94 kB / 0.5108 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.1156, allocations: 0 / 0.5108 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.1156, allocations: 7.938 kB / 0.5108 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1156, allocations: 0 / 0.5108 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1156, allocations: 0 / 0.5108 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001664/0.1158, allocations: 126.7 kB / 0.5109 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.942e-05/0.1158, allocations: 11.94 kB / 0.511 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.231e-05/0.1158, allocations: 7.938 kB / 0.511 GB, free: 2.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.927e-05/0.1159, allocations: 0 / 0.511 GB, free: 2.344 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.743e-05/0.1159, allocations: 8 kB / 0.511 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.1159, allocations: 0 / 0.511 GB, free: 2.336 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.116, allocations: 127.8 kB / 0.5111 GB, free: 2.211 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.116, allocations: 4 kB / 0.5111 GB, free: 2.207 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002247/0.1162, allocations: 27.94 kB / 0.5111 GB, free: 2.18 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.0005072/0.1167, allocations: 0.6848 MB / 0.5118 GB, free: 1.457 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001886/0.1169, allocations: 107.3 kB / 0.5119 GB, free: 1.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.1169, allocations: 0 / 0.5119 GB, free: 1.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.07e-05/0.117, allocations: 71.41 kB / 0.512 GB, free: 1.258 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.1172, allocations: 15.97 kB / 0.512 GB, free: 1.242 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2069/0.3241, allocations: 1.59 MB / 0.5135 GB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.3243, allocations: 0.6987 MB / 0.5142 GB, free: 13.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001397/0.3244, allocations: 41.52 kB / 0.5142 GB, free: 13.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.244e-05/0.3245, allocations: 39.73 kB / 0.5143 GB, free: 13.96 MB / 382.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3245, allocations: 1.812 kB / 0.5143 GB, free: 13.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02759/0.3521, allocations: 2.521 MB / 0.5168 GB, free: 13.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.23, allocations: 7.953 kB / 0.5168 GB, free: 13.62 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: 13.997587783960626]