Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.SingleTD.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.001749/0.001749, 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.002161/0.002161, allocations: 209.3 kB / 22.24 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.469/1.469, allocations: 230.6 MB / 256 MB, free: 7.785 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.08299/0.08299, allocations: 16.96 MB / 329.4 MB, free: 2.168 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.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",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.002153/0.002153, allocations: 71.89 kB / 459.7 MB, free: 2.141 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1044, allocations: 57.63 MB / 0.5052 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002256/0.1067, allocations: 0.9995 MB / 0.5062 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006724/0.1074, allocations: 267.8 kB / 0.5064 GB, free: 7.156 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.392e-05/0.1074, allocations: 0 / 0.5064 GB, free: 7.156 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001631/0.1076, allocations: 43.66 kB / 0.5065 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002359/0.1078, allocations: 47.72 kB / 0.5065 GB, free: 7.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001524/0.108, allocations: 67.91 kB / 0.5066 GB, free: 7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003022/0.1083, allocations: 251.3 kB / 0.5068 GB, free: 6.754 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.501e-05/0.1083, allocations: 8.594 kB / 0.5068 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001535/0.1085, allocations: 119.6 kB / 0.5069 GB, free: 6.629 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.208e-05/0.1086, allocations: 43.59 kB / 0.507 GB, free: 6.586 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.992e-05/0.1086, allocations: 4 kB / 0.507 GB, free: 6.582 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.179e-05/0.1086, allocations: 15.98 kB / 0.507 GB, free: 6.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.089e-05/0.1087, allocations: 27.84 kB / 0.507 GB, free: 6.539 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.812e-05/0.1088, allocations: 35.67 kB / 0.5071 GB, free: 6.504 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.1089, allocations: 83.88 kB / 0.5071 GB, free: 6.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1089, allocations: 0 / 0.5071 GB, free: 6.422 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1089, allocations: 4 kB / 0.5072 GB, free: 6.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.1089, allocations: 0 / 0.5072 GB, free: 6.418 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005608/0.1095, allocations: 367.4 kB / 0.5075 GB, free: 6.023 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.1095, allocations: 8.031 kB / 0.5075 GB, free: 6.016 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.044e-05/0.1096, allocations: 42.73 kB / 0.5075 GB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.825e-05/0.1096, allocations: 12.89 kB / 0.5076 GB, free: 5.953 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.1098, allocations: 150.4 kB / 0.5077 GB, free: 5.781 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.1098, allocations: 8 kB / 0.5077 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.575e-05/0.1099, allocations: 4 kB / 0.5077 GB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003095/0.1102, allocations: 156.5 kB / 0.5079 GB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.1102, allocations: 7.938 kB / 0.5079 GB, free: 5.578 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.1102, allocations: 4 kB / 0.5079 GB, free: 5.574 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.1102, allocations: 0 / 0.5079 GB, free: 5.574 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002427/0.1104, allocations: 101.6 kB / 0.508 GB, free: 5.469 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008213/0.1113, allocations: 0.7154 MB / 0.5087 GB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002137/0.1115, allocations: 114.9 kB / 0.5088 GB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.896e-05/0.1116, allocations: 55.34 kB / 0.5088 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.644e-06/0.1116, allocations: 4 kB / 0.5088 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/0.1118, allocations: 122.9 kB / 0.509 GB, free: 4.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.1118, allocations: 0 / 0.509 GB, free: 4.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003947/0.1122, allocations: 214.6 kB / 0.5092 GB, free: 4.105 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.349e-05/0.1122, allocations: 106.8 kB / 0.5093 GB, free: 3.977 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001686/0.1124, allocations: 182.9 kB / 0.5094 GB, free: 3.789 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.1124, allocations: 29.7 kB / 0.5095 GB, free: 3.754 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.667e-05/0.1125, allocations: 120.2 kB / 0.5096 GB, free: 3.629 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.506e-05/0.1126, allocations: 23.83 kB / 0.5096 GB, free: 3.605 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.153e-05/0.1126, allocations: 41.66 kB / 0.5096 GB, free: 3.559 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1128, allocations: 326.8 kB / 0.51 GB, free: 3.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.613e-05/0.1129, allocations: 53.69 kB / 0.51 GB, free: 3.172 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.113, allocations: 112.5 kB / 0.5101 GB, free: 3.031 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003754/0.1134, allocations: 253.5 kB / 0.5104 GB, free: 2.734 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1134, allocations: 4 kB / 0.5104 GB, free: 2.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003411/0.1137, allocations: 224.7 kB / 0.5106 GB, free: 2.492 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.781e-05/0.1138, allocations: 29.7 kB / 0.5106 GB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1138, allocations: 4 kB / 0.5106 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.1138, allocations: 0 / 0.5106 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.986e-05/0.1139, allocations: 15.98 kB / 0.5106 GB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.1139, allocations: 7.938 kB / 0.5106 GB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.56e-05/0.114, allocations: 19.89 kB / 0.5106 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.114, allocations: 8.188 kB / 0.5107 GB, free: 2.402 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: T1.firingTime:DISCRETE(fixed = true protected = true ) \"next putative firing time\" type: Real T1.ani:DISCRETE(fixed = true protected = true ) \"for transition animation\" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) \"for transition animation\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.T1.firingTime,T1.activation.active,T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,$whenCondition2,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,T1.firingCon,T1.enabledByInPlaces,$whenCondition1,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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.0001803/0.1142, allocations: 160.1 kB / 0.5108 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.911e-05/0.1142, allocations: 19.84 kB / 0.5108 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.795e-05/0.1142, allocations: 21.08 kB / 0.5108 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1142, allocations: 320 / 0.5108 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.1142, allocations: 0 / 0.5108 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1142, allocations: 4 kB / 0.5109 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005937/0.1148, allocations: 0.4886 MB / 0.5113 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1148, allocations: 0 / 0.5113 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.158e-05/0.1149, allocations: 4 kB / 0.5113 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1149, allocations: 0 / 0.5113 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.1149, allocations: 7.984 kB / 0.5113 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1149, allocations: 0 / 0.5113 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1149, allocations: 0 / 0.5113 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003346/0.1152, allocations: 338 kB / 0.5117 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.473e-05/0.1152, allocations: 15.88 kB / 0.5117 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.1153, allocations: 8 kB / 0.5117 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.1154, allocations: 8 kB / 0.5117 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.923e-05/0.1154, allocations: 11.98 kB / 0.5117 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.1154, allocations: 7.984 kB / 0.5117 GB, free: 1.211 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001084/0.1155, allocations: 128.1 kB / 0.5118 GB, free: 1.086 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1155, allocations: 0 / 0.5118 GB, free: 1.086 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000305/0.1158, allocations: 23.95 kB / 0.5119 GB, free: 1.062 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,T1.fireTime,T1.ani,T1.active,$whenCondition2,T1.firingTime,T1.delayPassed,T1.activation.active) * Number of discrete states: 2 (T1.activation.active,T1.delayPassed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * 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.0006969/0.1165, allocations: 0.8634 MB / 0.5127 GB, free: 164 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.1909/0.3074, allocations: 195.1 kB / 0.5129 GB, free: 15.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.3074, allocations: 1.594 kB / 0.5129 GB, free: 15.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.3076, allocations: 111.1 kB / 0.513 GB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.308, allocations: 18.19 kB / 0.513 GB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001839/0.3099, allocations: 2.003 MB / 0.515 GB, free: 13.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.83e-05/0.3099, allocations: 95.91 kB / 0.5151 GB, free: 13.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.422e-05/0.31, allocations: 25.34 kB / 0.5151 GB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.957e-05/0.3101, allocations: 35.06 kB / 0.5151 GB, free: 13.58 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3101, allocations: 0 / 0.5151 GB, free: 13.58 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02786/0.3379, allocations: 3.074 MB / 0.5181 GB, free: 12.79 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.23, allocations: 5.297 kB / 0.5181 GB, free: 12.78 MB / 382.1 MB " [Timeout remaining time 649] (rm -f PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.SingleTD.pipe >> ../files/PNlib_PNlib.Examples.DisTest.SingleTD.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PNlib_PNlib.Examples.DisTest.SingleTD_res.mat --tempDir=temp_PNlib_PNlib_Examples_DisTest_SingleTD_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PNlib_PNlib_Examples_DisTest_SingleTD.fmu > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PNlib_PNlib.Examples.DisTest.SingleTD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.SingleTD.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SingleTD.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.936163886915892]