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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 104.4 kB / 16.45 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002134/0.002134, allocations: 195.7 kB / 19.41 MB, free: 3.676 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.08018/0.08018, allocations: 16.97 MB / 319.6 MB, free: 9.012 MB / 254.1 MB " [Timeout remaining time 180] Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 67.89 kB / 446.1 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1162, allocations: 56.41 MB / 0.4907 GB, free: 3.254 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002462/0.1187, allocations: 1.058 MB / 0.4918 GB, free: 2.188 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006803/0.1193, allocations: 271.7 kB / 0.492 GB, free: 1.922 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.777e-05/0.1194, allocations: 8 kB / 0.492 GB, free: 1.914 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.1196, allocations: 39.7 kB / 0.4921 GB, free: 1.875 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002421/0.1198, allocations: 47.66 kB / 0.4921 GB, free: 1.828 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001669/0.12, allocations: 75.89 kB / 0.4922 GB, free: 1.754 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003149/0.1203, allocations: 227.5 kB / 0.4924 GB, free: 1.531 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.867e-05/0.1203, allocations: 16.39 kB / 0.4924 GB, free: 1.512 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.1205, allocations: 111.6 kB / 0.4925 GB, free: 1.402 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.232e-05/0.1206, allocations: 55.53 kB / 0.4926 GB, free: 1.348 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.019e-05/0.1206, allocations: 4 kB / 0.4926 GB, free: 1.344 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.685e-05/0.1207, allocations: 15.98 kB / 0.4926 GB, free: 1.328 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.536e-05/0.1207, allocations: 19.86 kB / 0.4926 GB, free: 1.309 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.631e-05/0.1208, allocations: 39.73 kB / 0.4926 GB, free: 1.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.121, allocations: 87.81 kB / 0.4927 GB, free: 1.184 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.121, allocations: 0 / 0.4927 GB, free: 1.184 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.121, allocations: 0 / 0.4927 GB, free: 1.184 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.121, allocations: 7.938 kB / 0.4927 GB, free: 1.176 MB / 366.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.0006176/0.1216, allocations: 432.7 kB / 0.4932 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.1217, allocations: 15.83 kB / 0.4932 GB, free: 0.6836 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.405e-05/0.1217, allocations: 46.69 kB / 0.4932 GB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.215e-05/0.1217, allocations: 16.84 kB / 0.4932 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002371/0.122, allocations: 206.6 kB / 0.4934 GB, free: 384 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.122, allocations: 4 kB / 0.4934 GB, free: 380 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.049e-05/0.122, allocations: 8 kB / 0.4934 GB, free: 372 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.1223, allocations: 137.8 kB / 0.4936 GB, free: 212 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.1223, allocations: 4 kB / 0.4936 GB, free: 208 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.1224, allocations: 7.984 kB / 0.4936 GB, free: 200 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.1224, allocations: 4 kB / 0.4936 GB, free: 196 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000202/0.1226, allocations: 59.89 kB / 0.4936 GB, free: 136 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009453/0.1235, allocations: 0.9099 MB / 0.4945 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.1237, allocations: 77.22 kB / 0.4946 GB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.134e-05/0.1238, allocations: 29.66 kB / 0.4946 GB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.1238, allocations: 7.984 kB / 0.4946 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000234/0.124, allocations: 97.03 kB / 0.4947 GB, free: 14.87 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.313e-06/0.124, allocations: 0 / 0.4947 GB, free: 14.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.000365/0.1244, allocations: 159.2 kB / 0.4949 GB, free: 14.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.507e-05/0.1244, allocations: 106.8 kB / 0.495 GB, free: 14.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.1246, allocations: 178.3 kB / 0.4952 GB, free: 14.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.1246, allocations: 29.7 kB / 0.4952 GB, free: 14.35 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.709e-05/0.1247, allocations: 116.2 kB / 0.4953 GB, free: 14.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.1248, allocations: 23.84 kB / 0.4953 GB, free: 14.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.949e-05/0.1248, allocations: 37.7 kB / 0.4954 GB, free: 14.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.125, allocations: 322.8 kB / 0.4957 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.882e-05/0.1251, allocations: 27.98 kB / 0.4957 GB, free: 13.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/0.1252, allocations: 89.88 kB / 0.4958 GB, free: 13.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003759/0.1256, allocations: 265.5 kB / 0.496 GB, free: 13.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1256, allocations: 0 / 0.496 GB, free: 13.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003098/0.1259, allocations: 187 kB / 0.4962 GB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.542e-05/0.1259, allocations: 33.89 kB / 0.4962 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1259, allocations: 7.938 kB / 0.4962 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.1259, allocations: 4 kB / 0.4962 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.327e-05/0.126, allocations: 19.92 kB / 0.4963 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.126, allocations: 7.938 kB / 0.4963 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.057e-05/0.1261, allocations: 15.94 kB / 0.4963 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.019e-05/0.1261, allocations: 8 kB / 0.4963 GB, free: 13.1 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.0001982/0.1263, allocations: 175.4 kB / 0.4965 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.289e-05/0.1264, allocations: 11.91 kB / 0.4965 GB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.212e-05/0.1264, allocations: 16.98 kB / 0.4965 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1264, allocations: 4 kB / 0.4965 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1264, allocations: 320 / 0.4965 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1264, allocations: 0 / 0.4965 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005863/0.127, allocations: 0.4954 MB / 0.497 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.127, allocations: 0 / 0.497 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.716e-05/0.127, allocations: 8 kB / 0.497 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.127, allocations: 4 kB / 0.497 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.127, allocations: 0 / 0.497 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.127, allocations: 0 / 0.497 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.127, allocations: 0 / 0.497 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003041/0.1273, allocations: 312.3 kB / 0.4973 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.524e-05/0.1274, allocations: 89.02 kB / 0.4974 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.073e-05/0.1274, allocations: 4.234 kB / 0.4974 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.1275, allocations: 11.98 kB / 0.4974 GB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/0.1276, allocations: 11.92 kB / 0.4974 GB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.1276, allocations: 7.984 kB / 0.4974 GB, free: 11.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001016/0.1277, allocations: 132.2 kB / 0.4975 GB, free: 11.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1277, allocations: 0 / 0.4975 GB, free: 11.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000298/0.128, allocations: 20 kB / 0.4976 GB, free: 11.7 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.0006661/0.1287, allocations: 0.85 MB / 0.4984 GB, free: 10.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002901/0.1289, allocations: 139.4 kB / 0.4985 GB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1289, allocations: 3.938 kB / 0.4985 GB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.1291, allocations: 79.77 kB / 0.4986 GB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.1294, allocations: 17.83 kB / 0.4986 GB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.1318, allocations: 1.868 MB / 0.5004 GB, free: 8.555 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004555/0.1323, allocations: 0.7119 MB / 0.5011 GB, free: 7.816 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.128e-05/0.1324, allocations: 24.94 kB / 0.5012 GB, free: 7.793 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.32e-05/0.1324, allocations: 31.42 kB / 0.5012 GB, free: 7.762 MB / 382.1 MB Notification: Performance of SimCode: time 4e-07/0.1324, allocations: 4 kB / 0.5012 GB, free: 7.758 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0281/0.1605, allocations: 2.481 MB / 0.5036 GB, free: 5.328 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.91/8.071, allocations: 14 kB / 0.5036 GB, free: 5.32 MB / 382.1 MB " [Timeout remaining time 652] (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_2/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: 10.827807588968426]