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.001782/0.001782, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002236/0.002236, allocations: 217.5 kB / 23.04 MB, free: 5.074 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.433/1.433, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.08233/0.08233, allocations: 16.95 MB / 330.2 MB, free: 2.27 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",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.002044/0.002044, allocations: 67.91 kB / 460.6 MB, free: 2.285 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.111, allocations: 57.63 MB / 0.506 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002283/0.1132, allocations: 1.076 MB / 0.5071 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000632/0.1139, allocations: 267.8 kB / 0.5073 GB, free: 7.227 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.187e-05/0.1139, allocations: 4 kB / 0.5073 GB, free: 7.223 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001574/0.1141, allocations: 47.64 kB / 0.5074 GB, free: 7.176 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000215/0.1143, allocations: 39.73 kB / 0.5074 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001522/0.1145, allocations: 79.83 kB / 0.5075 GB, free: 7.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003007/0.1148, allocations: 235.5 kB / 0.5077 GB, free: 6.828 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.923e-05/0.1148, allocations: 12.59 kB / 0.5077 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001547/0.115, allocations: 115.7 kB / 0.5079 GB, free: 6.703 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.512e-05/0.115, allocations: 55.53 kB / 0.5079 GB, free: 6.648 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.914e-05/0.1151, allocations: 7.984 kB / 0.5079 GB, free: 6.641 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.136e-05/0.1151, allocations: 8 kB / 0.5079 GB, free: 6.633 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.288e-05/0.1152, allocations: 27.86 kB / 0.5079 GB, free: 6.605 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.562e-05/0.1152, allocations: 43.61 kB / 0.508 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.1154, allocations: 83.88 kB / 0.5081 GB, free: 6.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1154, allocations: 0 / 0.5081 GB, free: 6.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1154, allocations: 3.938 kB / 0.5081 GB, free: 6.477 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.1154, allocations: 4 kB / 0.5081 GB, free: 6.473 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.0005404/0.116, allocations: 367.4 kB / 0.5084 GB, free: 6.078 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.116, allocations: 12.03 kB / 0.5084 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.354e-05/0.116, allocations: 4.094 kB / 0.5084 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.311e-05/0.1161, allocations: 38.75 kB / 0.5085 GB, free: 6.016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.907e-05/0.1161, allocations: 16.88 kB / 0.5085 GB, free: 6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001737/0.1163, allocations: 142.2 kB / 0.5086 GB, free: 5.836 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.1163, allocations: 8 kB / 0.5086 GB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.931e-05/0.1163, allocations: 12 kB / 0.5087 GB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002905/0.1166, allocations: 126.8 kB / 0.5088 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.1166, allocations: 3.938 kB / 0.5088 GB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.1166, allocations: 3.984 kB / 0.5088 GB, free: 5.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.1166, allocations: 4 kB / 0.5088 GB, free: 5.656 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002131/0.1168, allocations: 75.88 kB / 0.5089 GB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008197/0.1177, allocations: 0.7193 MB / 0.5096 GB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001862/0.1179, allocations: 85.09 kB / 0.5096 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.247e-05/0.1179, allocations: 33.75 kB / 0.5097 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.704e-06/0.1179, allocations: 0 / 0.5097 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002172/0.1181, allocations: 97.16 kB / 0.5098 GB, free: 4.547 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.233e-06/0.1182, allocations: 3.938 kB / 0.5098 GB, free: 4.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003605/0.1185, allocations: 155.3 kB / 0.5099 GB, free: 4.379 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.326e-05/0.1186, allocations: 106.8 kB / 0.51 GB, free: 4.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.1188, allocations: 175 kB / 0.5102 GB, free: 4.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.1188, allocations: 29.7 kB / 0.5102 GB, free: 4.035 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.201e-05/0.1189, allocations: 116.2 kB / 0.5103 GB, free: 3.914 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.865e-05/0.1189, allocations: 27.84 kB / 0.5104 GB, free: 3.887 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.75e-05/0.119, allocations: 33.72 kB / 0.5104 GB, free: 3.848 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.1191, allocations: 330.8 kB / 0.5107 GB, free: 3.516 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.171e-05/0.1192, allocations: 27.98 kB / 0.5107 GB, free: 3.488 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001309/0.1193, allocations: 82.8 kB / 0.5108 GB, free: 3.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003858/0.1197, allocations: 265.5 kB / 0.5111 GB, free: 3.074 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.299e-06/0.1197, allocations: 3.938 kB / 0.5111 GB, free: 3.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003272/0.12, allocations: 199.4 kB / 0.5113 GB, free: 2.863 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/0.1201, allocations: 29.7 kB / 0.5113 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1201, allocations: 4 kB / 0.5113 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.1201, allocations: 3.938 kB / 0.5113 GB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.641e-05/0.1202, allocations: 15.98 kB / 0.5113 GB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.1202, allocations: 8.125 kB / 0.5113 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.111e-05/0.1203, allocations: 19.95 kB / 0.5113 GB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/0.1203, allocations: 4 kB / 0.5113 GB, free: 2.773 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.0001834/0.1205, allocations: 164.1 kB / 0.5115 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.373e-05/0.1205, allocations: 11.95 kB / 0.5115 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.478e-05/0.1205, allocations: 17.09 kB / 0.5115 GB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1205, allocations: 4 kB / 0.5115 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1205, allocations: 0 / 0.5115 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.1205, allocations: 3.984 kB / 0.5115 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000567/0.1211, allocations: 474.4 kB / 0.512 GB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1211, allocations: 0 / 0.512 GB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.113e-05/0.1211, allocations: 4 kB / 0.512 GB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1211, allocations: 0 / 0.512 GB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.1211, allocations: 0 / 0.512 GB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.1211, allocations: 4 kB / 0.512 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1211, allocations: 4 kB / 0.512 GB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000316/0.1215, allocations: 312.5 kB / 0.5123 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.95e-05/0.1215, allocations: 7.953 kB / 0.5123 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.447e-05/0.1215, allocations: 7.984 kB / 0.5123 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.1216, allocations: 3.984 kB / 0.5123 GB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.161e-05/0.1217, allocations: 15.98 kB / 0.5123 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.1217, allocations: 7.938 kB / 0.5123 GB, free: 1.652 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001046/0.1218, allocations: 124.2 kB / 0.5124 GB, free: 1.531 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1218, allocations: 0 / 0.5124 GB, free: 1.531 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003035/0.1221, allocations: 27.94 kB / 0.5125 GB, free: 1.504 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.0006355/0.1227, allocations: 0.8541 MB / 0.5133 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002751/0.123, allocations: 139.2 kB / 0.5134 GB, free: 480 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.123, allocations: 0 / 0.5134 GB, free: 480 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.1231, allocations: 87.33 kB / 0.5135 GB, free: 380 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.1234, allocations: 15.94 kB / 0.5135 GB, free: 364 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.18/0.3035, allocations: 1.858 MB / 0.5154 GB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001531/0.3036, allocations: 0.7075 MB / 0.516 GB, free: 13.37 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.304e-05/0.3037, allocations: 22.52 kB / 0.5161 GB, free: 13.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.293e-05/0.3038, allocations: 39.2 kB / 0.5161 GB, free: 13.35 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3038, allocations: 0 / 0.5161 GB, free: 13.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02068/0.3245, allocations: 2.711 MB / 0.5188 GB, free: 13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.07, allocations: 20.25 kB / 0.5188 GB, free: 13 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.786160927033052]