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.001721/0.001721, 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.002213/0.002213, 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.459/1.459, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.08159/0.08159, allocations: 16.94 MB / 330.2 MB, free: 2.09 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.002257/0.002257, allocations: 59.91 kB / 460.5 MB, free: 2.133 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1112, allocations: 57.64 MB / 0.506 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.003027/0.1142, allocations: 1.002 MB / 0.5069 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.1152, allocations: 263.8 kB / 0.5072 GB, free: 7.145 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002242/0.1154, allocations: 4 kB / 0.5072 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.1157, allocations: 43.64 kB / 0.5072 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003546/0.116, allocations: 39.73 kB / 0.5073 GB, free: 7.059 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002678/0.1163, allocations: 83.83 kB / 0.5074 GB, free: 6.977 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004563/0.1167, allocations: 247.3 kB / 0.5076 GB, free: 6.734 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.278e-05/0.1168, allocations: 12.59 kB / 0.5076 GB, free: 6.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002004/0.117, allocations: 111.7 kB / 0.5077 GB, free: 6.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.973e-05/0.1171, allocations: 43.61 kB / 0.5077 GB, free: 6.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.323e-05/0.1171, allocations: 4 kB / 0.5078 GB, free: 6.566 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.012e-05/0.1172, allocations: 19.92 kB / 0.5078 GB, free: 6.547 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.479e-05/0.1173, allocations: 27.8 kB / 0.5078 GB, free: 6.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.872e-05/0.1174, allocations: 35.78 kB / 0.5078 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002112/0.1176, allocations: 83.81 kB / 0.5079 GB, free: 6.402 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1176, allocations: 0 / 0.5079 GB, free: 6.402 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1176, allocations: 8 kB / 0.5079 GB, free: 6.395 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.1176, allocations: 0 / 0.5079 GB, free: 6.395 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.0006498/0.1183, allocations: 363.5 kB / 0.5083 GB, free: 6.004 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.1183, allocations: 12.03 kB / 0.5083 GB, free: 5.992 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.869e-05/0.1183, allocations: 192 / 0.5083 GB, free: 5.992 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.112e-05/0.1184, allocations: 38.75 kB / 0.5083 GB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.049e-05/0.1184, allocations: 12.89 kB / 0.5083 GB, free: 5.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002128/0.1186, allocations: 147.9 kB / 0.5085 GB, free: 5.766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.878e-05/0.1187, allocations: 8 kB / 0.5085 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.669e-05/0.1187, allocations: 4 kB / 0.5085 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003473/0.119, allocations: 168.4 kB / 0.5086 GB, free: 5.559 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.119, allocations: 3.984 kB / 0.5086 GB, free: 5.555 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.1191, allocations: 4 kB / 0.5086 GB, free: 5.551 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.1191, allocations: 0 / 0.5086 GB, free: 5.551 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002496/0.1193, allocations: 97.59 kB / 0.5087 GB, free: 5.449 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.1203, allocations: 0.7153 MB / 0.5094 GB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000236/0.1206, allocations: 118.9 kB / 0.5096 GB, free: 4.531 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.233e-05/0.1207, allocations: 55.41 kB / 0.5096 GB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.1207, allocations: 4 kB / 0.5096 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003072/0.121, allocations: 122.7 kB / 0.5097 GB, free: 4.316 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.121, allocations: 0 / 0.5097 GB, free: 4.316 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004396/0.1214, allocations: 210.8 kB / 0.5099 GB, free: 4.086 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.657e-05/0.1215, allocations: 110.8 kB / 0.51 GB, free: 3.953 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001742/0.1217, allocations: 171 kB / 0.5102 GB, free: 3.777 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.1217, allocations: 33.69 kB / 0.5102 GB, free: 3.738 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.525e-05/0.1218, allocations: 120.3 kB / 0.5103 GB, free: 3.613 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.1218, allocations: 19.86 kB / 0.5104 GB, free: 3.594 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-05/0.1219, allocations: 41.7 kB / 0.5104 GB, free: 3.547 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.122, allocations: 322.8 kB / 0.5107 GB, free: 3.223 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.689e-05/0.1221, allocations: 53.69 kB / 0.5108 GB, free: 3.164 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.1223, allocations: 116.5 kB / 0.5109 GB, free: 3.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003792/0.1226, allocations: 265.4 kB / 0.5111 GB, free: 2.711 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.1226, allocations: 11.94 kB / 0.5111 GB, free: 2.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003201/0.123, allocations: 216.8 kB / 0.5113 GB, free: 2.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.123, allocations: 33.69 kB / 0.5114 GB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.123, allocations: 4 kB / 0.5114 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.123, allocations: 0 / 0.5114 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.925e-05/0.1231, allocations: 15.94 kB / 0.5114 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.1231, allocations: 4 kB / 0.5114 GB, free: 2.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.227e-05/0.1232, allocations: 24.12 kB / 0.5114 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.1232, allocations: 4 kB / 0.5114 GB, free: 2.379 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.0001721/0.1234, allocations: 160.1 kB / 0.5116 GB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.603e-05/0.1234, allocations: 20.19 kB / 0.5116 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.396e-05/0.1234, allocations: 17.09 kB / 0.5116 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.1234, allocations: 0 / 0.5116 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.1234, allocations: 7.938 kB / 0.5116 GB, free: 2.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.1235, allocations: 8 kB / 0.5116 GB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005754/0.124, allocations: 488.2 kB / 0.5121 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.124, allocations: 0 / 0.5121 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.262e-05/0.1241, allocations: 7.984 kB / 0.5121 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1241, allocations: 3.938 kB / 0.5121 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.1241, allocations: 4 kB / 0.5121 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1241, allocations: 0 / 0.5121 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1241, allocations: 0 / 0.5121 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003233/0.1244, allocations: 342 kB / 0.5124 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.709e-05/0.1244, allocations: 7.953 kB / 0.5124 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.1244, allocations: 12 kB / 0.5125 GB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.1245, allocations: 4 kB / 0.5125 GB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.382e-05/0.1246, allocations: 15.97 kB / 0.5125 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.1246, allocations: 7.938 kB / 0.5125 GB, free: 1.188 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001058/0.1247, allocations: 120.2 kB / 0.5126 GB, free: 1.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1247, allocations: 0 / 0.5126 GB, free: 1.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003034/0.125, allocations: 23.94 kB / 0.5126 GB, free: 1.047 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.0006764/0.1257, allocations: 0.875 MB / 0.5135 GB, free: 136 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.1884/0.3141, allocations: 187.3 kB / 0.5137 GB, free: 15.28 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3141, allocations: 0 / 0.5137 GB, free: 15.28 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.3143, allocations: 113.7 kB / 0.5138 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000398/0.3147, allocations: 17.41 kB / 0.5138 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001754/0.3164, allocations: 2.003 MB / 0.5157 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.558e-05/0.3165, allocations: 96.55 kB / 0.5158 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.208e-05/0.3166, allocations: 25.8 kB / 0.5159 GB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.203e-05/0.3166, allocations: 40.48 kB / 0.5159 GB, free: 13.54 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3166, allocations: 1.375 kB / 0.5159 GB, free: 13.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/0.3371, allocations: 2.748 MB / 0.5186 GB, free: 13.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.42, allocations: 13.16 kB / 0.5186 GB, free: 13.12 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.184730755980127]